Skip to content

Commit

Permalink
Use HTTP OTLP Exporter bc it is arch agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN committed Nov 29, 2021
1 parent b7f4c96 commit 2cf1579
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/src/otel/otel_sdk/otel-instrument
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ export PYTHONPATH="$LAMBDA_RUNTIME_DIR:$PYTHONPATH";

# Configure OpenTelemetry Python with environment variables

# - Uses the default `OTEL_TRACES_EXPORTER` which is set to `otlp_proto_grpc`
# - We leave `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` to its default. This is
# `http://localhost:4318/v1/traces` because we are using the HTTP exporter

# - Set the trace exporter

if [ -z ${OTEL_TRACES_EXPORTER} ]; then
export OTEL_TRACES_EXPORTER=otlp_proto_http;
fi

# - Set the service name

Expand Down

0 comments on commit 2cf1579

Please sign in to comment.