Skip to content

Commit

Permalink
Simplify lambda wrapper defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Oct 4, 2024
1 parent 85c61b7 commit d0cb0f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lambda/solarwinds-apm/wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ export LAMBDA_LAYER_PKGS_DIR="/opt/python";
export PYTHONPATH="$LAMBDA_LAYER_PKGS_DIR:$PYTHONPATH";
export PYTHONPATH="$LAMBDA_RUNTIME_DIR:$PYTHONPATH";

# Need to opt into OTLP traces exporter, always for lambda
export OTEL_TRACES_EXPORTER=otlp_proto_http

# Need to opt into OTLP metrics export, always for lambda
export SW_APM_EXPORT_METRICS_ENABLED=true
# Default opt into OTLP metrics export in lambda
if [ -z "${SW_APM_EXPORT_METRICS_ENABLED}" ]; then
export SW_APM_EXPORT_METRICS_ENABLED=true
fi

# Default OTEL_EXPORTER_OTLP_PROTOCOL for APM Python in lambda
# for all of logs/trace/metrics is HTTP through otelcollector
Expand Down

0 comments on commit d0cb0f9

Please sign in to comment.