-
Notifications
You must be signed in to change notification settings - Fork 614
Open
Description
What version of OpenTelemetry are you using?
"@opentelemetry/auto-instrumentations-node": "0.62.2",
"@opentelemetry/instrumentation-aws-sdk": "0.58.0",
What version of Node are you using?
22.18.0
What did you do?
const sdk = new NodeSDK({
resource,
traceExporter: traceExporter,
spanProcessors: [new node.BatchSpanProcessor(traceExporter, {})],
instrumentations: [
getNodeAutoInstrumentations({
'@opentelemetry/instrumentation-aws-sdk': {
enabled: true,
sqsExtractContextPropagationFromPayload: true,
sqsProcessHook: sqsProcessHook,
},
}),
],
});
What did you expect to see?
in @opentelemetry/[email protected] sqsProcessHook
could be defined, but now it's not an option. we were using it to add some extra data to the span based on the sqs message.
What did you see instead?
This has been removed on this PR moving to span links instead of processing spans:
#2345
Additional context
If there is a way to achieve the same using the new version that would be great, but i can't see an option. i tried responseHook
but that only works on the response (not on the individual message), so we can't add attributes to the per-message span.