Skip to content

Commit

Permalink
fix: make OTEL_METRICS_EXPORTER configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
testersen committed Jan 13, 2024
1 parent 535832a commit bba0f9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class OpenTelemetryPlugin : Plugin<Project> {
val nodeName = "local-spot-00000000-host000000"
it.extend(
"OTEL_RESOURCE_ATTRIBUTES_POD_NAME" to podName,
"OTEL_METRICS_EXPORTER" to "otlp",
"OTEL_METRICS_EXPORTER" to (DotEnvPlugin.get(project, "OTEL_METRICS_EXPORTER") ?: "otlp"),
"OTEL_RESOURCE_ATTRIBUTES" to mapOf(
"k8s.container.name" to resourceName,
"k8s.deployment.name" to resourceName,
Expand Down

0 comments on commit bba0f9d

Please sign in to comment.