Skip to content

Commit

Permalink
fix: made OTEL_EXPORTER_OTLP_ENDPOINT configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
testersen committed Jan 13, 2024
1 parent 68b2d52 commit 3260c88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class OpenTelemetryPlugin : Plugin<Project> {
"service.version" to "UNVERSIONED",
).map { e -> "${e.key}=${e.value}" }.joinToString(","),
"OTEL_PROPAGATORS" to "tracecontext,baggage",
"OTEL_EXPORTER_OTLP_ENDPOINT" to "http://localhost:4317",
"OTEL_EXPORTER_OTLP_ENDPOINT" to (DotEnvPlugin.get(project, "OTEL_EXPORTER_OTLP_ENDPOINT")
?: "http://localhost:4317"),
"OTEL_TRACES_SAMPLER" to "always_on",
"OTEL_SERVICE_NAME" to resourceName,
"OTEL_RESOURCE_ATTRIBUTES_NODE_NAME" to nodeName
Expand Down

0 comments on commit 3260c88

Please sign in to comment.