Skip to content

Commit

Permalink
pass OTEL_EXPORTER_OTLP_TRACES_* env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Jul 26, 2022
1 parent 98f5b34 commit a97f416
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions integration/localnet/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ func prepareService(container testnet.ContainerConfig, i int, n int) Service {
fmt.Sprintf("%s:/data:z", dataDir),
},
Environment: []string{
"JAEGER_ENDPOINT=http://tempo:14268/api/traces",
// NOTE: these env vars are not set by default, but can be set [1] to enable binstat logging:
// [1] https://docs.docker.com/compose/environment-variables/#pass-environment-variables-to-containers
// https://github.com/open-telemetry/opentelemetry-specification/blob/v1.12.0/specification/protocol/exporter.md
"OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://tempo:4317",
"OTEL_EXPORTER_OTLP_TRACES_INSECURE=true",
"BINSTAT_ENABLE",
"BINSTAT_LEN_WHAT",
"BINSTAT_DMP_NAME",
Expand Down Expand Up @@ -533,7 +533,9 @@ func prepareObserverService(i int, observerName string, agPublicKey string) Serv
fmt.Sprintf("%s:/data:z", dataDir),
},
Environment: []string{
"JAEGER_ENDPOINT=http://tempo:14268/api/traces",
// https://github.com/open-telemetry/opentelemetry-specification/blob/v1.12.0/specification/protocol/exporter.md
"OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://tempo:4317",
"OTEL_EXPORTER_OTLP_TRACES_INSECURE=true",
"BINSTAT_ENABLE",
"BINSTAT_LEN_WHAT",
"BINSTAT_DMP_NAME",
Expand Down

0 comments on commit a97f416

Please sign in to comment.