-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: add more attributes to the spans
This change modifies the existing middlewares to add new span attributes and be consistent with logging. In practice, the following resource attributes are added: * `cloud.provider` (always `Azure`) [1] * `cloud.region` [1] The following span attributes are added: * `cloud.resource_id` [1] * `aro.subscription.id` * `aro.subscription.state` * `aro.resource_group.name` * `aro.resource.name` * `aro.api_version` The following span attributes have also been renamed to better match the guidelines on attribute naming (TL;DR: use dot separators to delimit namespaces and underscores for multi-word names): * `aro.correlation.id` -> `aro.correlation_id` * `aro.client.request.id` -> `aro.client.request_id` * `aro.request.id` -> `aro.request_id` [1] https://pkg.go.dev/go.opentelemetry.io/otel@v1.34.0/semconv/v1.27.0 Signed-off-by: Simon Pasquier <spasquie@redhat.com>
- Loading branch information
1 parent
c7c4633
commit 769ff74
Showing
16 changed files
with
315 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.