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
I want to use the aws-lambda-events library in a lambda instrumented by the javaagent, so I can do manual instrumentation beyond what the agent provides.
Problem is, it seems like this library needs to be supplied with an OpenTelemetrySdk instance, which the lambda only has through the javaagent.
I thought instrumentation libraries were not supposed to directly depend on the SDK, only the API? Or am I mistaken?
Is there some legit way to get access to the javaagent's SDK, so I can pass to aws-lambda-events? Or if I include my own, will it be automatically bridged to the agent's?
For reference, here's some aws-lambda-events code that depends on the SDK:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use the aws-lambda-events library in a lambda instrumented by the javaagent, so I can do manual instrumentation beyond what the agent provides.
Problem is, it seems like this library needs to be supplied with an OpenTelemetrySdk instance, which the lambda only has through the javaagent.
I thought instrumentation libraries were not supposed to directly depend on the SDK, only the API? Or am I mistaken?
Is there some legit way to get access to the javaagent's SDK, so I can pass to aws-lambda-events? Or if I include my own, will it be automatically bridged to the agent's?
For reference, here's some aws-lambda-events code that depends on the SDK:
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/aws-lambda/aws-lambda-events-2.2/library/src/main/java/io/opentelemetry/instrumentation/awslambdaevents/v2_2/TracingSqsEventWrapper.java
Beta Was this translation helpful? Give feedback.
All reactions