Skip to content

Commit

Permalink
feat: specify the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
bripkens committed May 15, 2024
1 parent 515e399 commit 8da7921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/otelbin-validation-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ ENV OTEL_SERVICE_NAME=OTelBin
ENV OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4328
ENV OTEL_PROPAGATORS="tracecontext,baggage"
ENV NODE_OPTIONS="--require /usr/app/src/lambda-wrapper.js"
ENV _HANDLER="index.handler"
ENV OTEL_LOG_LEVEL=DEBUG

WORKDIR /usr/app/src
Expand Down
2 changes: 1 addition & 1 deletion packages/otelbin-validation-image/src/lambda-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const instrumentations = [
new AwsInstrumentation({
suppressInternalInstrumentation: true
}),
new AwsLambdaInstrumentation(defaultConfigureInstrumentations)()
new AwsLambdaInstrumentation(defaultConfigureInstrumentations())
];

// configure lambda logging
Expand Down

0 comments on commit 8da7921

Please sign in to comment.