You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
|"aws.operation"| string | The method name for the request. | for `SQS.sendMessage(...)` the operation is "sendMessage" |
47
-
|"aws.signature.version"| string |Aws version of authentication signature on the request. | "v4" |
48
-
|"aws.region"| string | Region name for the request | "eu-west-1" |
49
-
|"aws.service.api"| string | The sdk class name for the service | "SQS" |
50
-
|"aws.service.identifier"| string | Identifier for the service in the sdk | "sqs" |
51
-
|"aws.service.name"| string | Abbreviation name for the service | "Amazon SQS" |
52
-
|"aws.request.id"| uuid | Request unique id, as returned from aws on response | "01234567-89ab-cdef-0123-456789abcdef" |
53
-
|"aws.error"| string | information about a service or networking error, as returned from aws| "UriParameterError: Expected uri parameter to have length >= 1, but found "" for params.Bucket" |
|`aws.operation`| string | The method name for the request. | for `SQS.sendMessage(...)` the operation is "sendMessage" |
47
+
|`aws.signature.version`| string |AWS version of authentication signature on the request. | "v4" |
48
+
|`aws.region`| string | Region name for the request | "eu-west-1" |
49
+
|`aws.service.api`| string | The sdk class name for the service | "SQS" |
50
+
|`aws.service.identifier`| string | Identifier for the service in the sdk | "sqs" |
51
+
|`aws.service.name`| string | Abbreviation name for the service | "Amazon SQS" |
52
+
|`aws.request.id`| uuid | Request unique id, as returned from aws on response | "01234567-89ab-cdef-0123-456789abcdef" |
53
+
|`aws.error`| string | information about a service or networking error, as returned from AWS| "UriParameterError: Expected uri parameter to have length >= 1, but found "" for params.Bucket" |
54
54
55
55
### Custom User Attributes
56
-
The plugin user can configure a hook function which will be called before each request, with the request object and the relevant span. This hook can be used to add custom attributes to the span with any logic. For example, user can add interesting attributes from the `request.params`, and write custom logic based on the service and operation.
56
+
The plugin user can configure a `preRequestHook` function which will be called before each request, with the request object and the corrosponding span.
57
+
This hook can be used to add custom attributes to the span with any logic.
58
+
For example, user can add interesting attributes from the `request.params`, and write custom logic based on the service and operation.
AWS contains dozens of services accessible with the JS SDK. For many services, the default attributes specified above are enough, but other services have specific [trace semantic conventions](https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/trace/semantic_conventions), or need to inject/extract intra-process context, or set intra-process context correctly.
0 commit comments