Skip to content

Commit

Permalink
remove ENABLE_OTEL_BUILTIN_RESOURCE_LABELS (#51483)
Browse files Browse the repository at this point in the history
  • Loading branch information
zirain committed Jun 10, 2024
1 parent afe3412 commit a7f470b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 0 additions & 4 deletions pilot/pkg/features/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,4 @@ var (

EnableControllerQueueMetrics = env.Register("ISTIO_ENABLE_CONTROLLER_QUEUE_METRICS", false,
"If enabled, publishes metrics for queue depth, latency and processing times.").Get()

// User should not rely on builtin resource labels, this flag will be removed in future releases(1.20).
EnableOTELBuiltinResourceLabels = env.Register("ENABLE_OTEL_BUILTIN_RESOURCE_LABELS", false,
"If enabled, envoy will send builtin labels(e.g. node_name) via OTel sink.").Get()
)
3 changes: 1 addition & 2 deletions pilot/pkg/model/telemetry_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"google.golang.org/protobuf/types/known/structpb"

meshconfig "istio.io/api/mesh/v1alpha1"
"istio.io/istio/pilot/pkg/features"
"istio.io/istio/pilot/pkg/util/protoconv"
"istio.io/istio/pkg/config/host"
"istio.io/istio/pkg/maps"
Expand Down Expand Up @@ -489,7 +488,7 @@ func buildOpenTelemetryAccessLogConfig(logName, hostname, clusterName, format st
TransportApiVersion: core.ApiVersion_V3,
FilterStateObjectsToLog: envoyWasmStateToLog,
},
DisableBuiltinLabels: !features.EnableOTELBuiltinResourceLabels,
DisableBuiltinLabels: true,
}

if format != "" {
Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/otel-builtin-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: release-notes/v2
kind: feature
area: telemetry
releaseNotes:
- |
**Removed** the feature flag `ENABLE_OTEL_BUILTIN_RESOURCE_LABELS`.

0 comments on commit a7f470b

Please sign in to comment.