https://kotlinlang.org logo
#http4k
Title
# http4k
a

Andrew O'Hara

04/16/2022, 6:11 PM
I'm trying to use the opentelemetry plugin to add additional segments to AWS Xray from my AWS Lambda Function. I have opentelemetry initialized with the Xray propogator
Copy code
val openTelemetry = OpenTelemetrySdk.builder()
    .setPropagators(create(AwsXrayPropagator.getInstance()))
    .buildAndRegisterGlobal()
I have my server instrumented (plus clients and sdks)
Copy code
class ApiLambdaHandler: ApiGatewayV2LambdaFunction(
    ServerFilters.OpenTelemetryTracing(openTelemetry)
    .then(httpHandler)
)
but the extra segments aren't being added to the xray traces. My guess is that
openTelemetry
isn't integrated with the lambda. Does anyone have any examples of doing this without any ridiculous JVM agents?
5 Views