v0.104.0
This Splunk OpenTelemetry Collector release includes changes from the opentelemetry-collector v0.104.0 and the opentelemetry-collector-contrib v0.104.0 releases where appropriate.
⚠️ In our efforts to align with the goals defined upstream for environment variable resolution in the Collector's configuration, the Splunk OpenTelemetry Collector will be dropping support for expansion of BASH-style environment variables, such as$FOO
in the configuration in an upcoming version. Users are advised to update their Collector's configuration to use${env:FOO}
instead.
🚩 When setting properties for discovery receiver as environment variables (SPLUNK_DISCOVERY_*
), the values cannot reference other environment variables without curly-braces. For example, user is trying to set discovery propertySPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED
to the value of another env var,K8S_ENVIRONMENT
.
For versions older than 0.104.0, setting it asSPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=\$K8S_ENVIRONMENT
(note the escaped variable name does not have curly braces) was valid. But from v0.104.0, env var names need to be passed with braces. For this example, user should modify it toSPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=\${K8S_ENVIRONMENT}
.
❗ Known Issues ❗
- A bug was discovered (and fixed in a future version) where expansion logic in confmaps wasn't correctly handling the escaping of $$ (#10560)
- If you rely on the previous functionality, disable the
confmap.unifyEnvVarExpansion
feature gate. Note that this is a temporary workaround, and the root issue will be fixed in the next release by (#10560).
- If you rely on the previous functionality, disable the
🛑 Breaking changes 🛑
- (Splunk) Auto Discovery for Linux:
- Update
splunk-otel-java
to v2.5.0 for thesplunk-otel-auto-instrumentation
deb/rpm packages. This is a major version bump that includes breaking changes. Check the release notes for details about breaking changes.
- Update
- (Core)
filter
: Remove deprecatedfilter.CombinedFilter
(#10348) - (Core)
otelcol
: By default,otelcol.NewCommand
andotelcol.NewCommandMustSetProvider
will set theDefaultScheme
toenv
. (#10435) - (Core)
expandconverter
: By default expandconverter will now error if it is about to expand$FOO
syntax. Update configuration to use${env:FOO}
instead or disable theconfmap.unifyEnvVarExpansion
feature gate. (#10435) - (Core)
otlpreceiver
: Switch tolocalhost
as the default for all endpoints. (#8510)
Disable thecomponent.UseLocalHostAsDefaultHost
feature gate to temporarily get the previous default. - (Splunk)
discovery
: When setting properties for discovery receiver as environment variables (SPLUNK_DISCOVERY_*
), the values cannot reference other escaped environment variables without braces. For example, when trying to set discovery propertySPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED
to the value of another env var,K8S_ENVIRONMENT
. For versions older than 0.104.0, setting it asSPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=\$K8S_ENVIRONMENT
(note the escaped variable name does not have braces) was valid. But from v0.104.0, env var names need to be passed with braces. For this example, user should modify it toSPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=\${K8S_ENVIRONMENT}
- (Contrib)
vcenterreceiver
: Drops support for vCenter 6.7 (#33607) - (Contrib)
all
: Promotecomponent.UseLocalHostAsDefaultHost
feature gate to beta. This changes default endpoints from 0.0.0.0 to localhost (#30702)
This change affects the following components:- extension/health_check
- receiver/jaeger
- receiver/sapm
- receiver/signalfx
- receiver/splunk_hec
- receiver/zipkin
- (Contrib)
receiver/mongodb
: Graduate receiver.mongodb.removeDatabaseAttr feature gate to stable (#24972)
💡 Enhancements 💡
- (Splunk) Auto Discovery for Linux:
- Linux installer script:
- The default for the
--otlp-endpoint
option is now empty, i.e. defers to the defaultOTEL_EXPORTER_OTLP_ENDPOINT
value for each activated SDK - Add new
--otlp-endpoint-protocol <protocol>
option to set theOTEL_EXPORTER_OTLP_PROTOCOL
environment variable for the configured endpoint. Only applicable if the--otlp-endpoint
option is also specified. - Add new
--metrics-exporter <exporter>
option to configure theOTEL_METRICS_EXPORTER
environment variable for instrumentation metrics. Specifynone
to disable metric collection and export.
- The default for the
- Linux installer script:
- (Splunk) Set Go garbage collection target percentage to 400% (#5034)
After removal of memory_ballast extension in v0.97.0, the Go garbage collection is running more aggressively, which
increased CPU usage and leads to reduced throughput of the collector. This change reduces the frequency of garbage
collection cycles to improves performance of the collector for typical workloads. As a result, the collector will
report higher memory usage, but it will be bound to the same configured limits. If you want to revert to the previous
behavior, set theGOGC
environment variable to100
. - (Splunk) Upgrade to golang 1.21.12 (#5074)
- (Core)
confighttp
: Add support for cookies in HTTP clients withcookies::enabled
. (#10175)
The methodconfighttp.ToClient
will return a client with acookiejar.Jar
which will reuse cookies from server responses in subsequent requests. - (Core)
exporter/debug
: Innormal
verbosity, display one line of text for each telemetry record (log, data point, span) (#7806) - (Core)
exporter/debug
: Add optionuse_internal_logger
(#10226) - (Core)
configretry
: Mark module as stable. (#10279) - (Core)
exporter/debug
: Print Span.TraceState() when present. (#10421)
Enables viewing sampling threshold information (as by OTEP 235 samplers). - (Core)
processorhelper
: Add "inserted" metrics for processors. (#10353)
This includes the following metrics for processors:processor_inserted_spans
processor_inserted_metric_points
processor_inserted_log_records
- (Contrib)
k8sattributesprocessor
: Add support for exposingk8s.pod.ip
as a resource attribute (#32960) - (Contrib)
vcenterreceiver
: Adds vCenter CPU readiness metric for VMs. (#33607) - (Contrib)
receiver/mongodb
: Ensure support of 6.0 and 7.0 MongoDB versions with integration tests (#32716) - (Contrib)
pkg/stanza
: Switch JSON parser used by json_parser to github.com/goccy/go-json (#33784) - (Contrib)
k8sobserver
: Add support for k8s.ingress endpoint. (#32971) - (Contrib)
statsdreceiver
: Optimize statsdreceiver to reduce object allocations (#33683) - (Contrib)
routingprocessor
: Use mdatagen to define the component's telemetry (#33526) - (Contrib)
receiver/mongodbreceiver
: Addserver.address
andserver.port
resource attributes to MongoDB receiver. (#32810,#32350)
The new resource attributes are added to the MongoDB receiver to distinguish metrics coming from different MongoDB instances.server.address
: The address of the MongoDB host, enabled by default.server.port
: The port of the MongoDB host, disabled by default.
- (Contrib)
observerextension
: Expose host and port in endpoint's environment (#33571) - (Contrib)
pkg/ottl
: Add aschema_url
field to access the SchemaURL in resources and scopes on all signals (#30229) - (Contrib)
sqlserverreceiver
: Enable more perf counter metrics when directly connecting to SQL Server (#33420)
This enables the following metrics by default on non Windows-based systems:
sqlserver.batch.request.rate
sqlserver.batch.sql_compilation.rate
sqlserver.batch.sql_recompilation.rate
sqlserver.page.buffer_cache.hit_ratio
sqlserver.user.connection.count
- (Contrib)
vcenterreceiver
: Adds vCenter CPU capacity and network drop rate metrics to hosts. (#33607)
🧰 Bug fixes 🧰
- (Splunk)
receiver/discovery
: Do not emit entity events for discovered endpoints that are not evaluated yet
to avoid showing "unknown" services on the Service Inventory page (#5032) - (Core)
otlpexporter
: Update validation to support both dns:// and dns:/// (#10449) - (Core)
service
: Fixed a bug that caused otel-collector to fail to start with ipv6 metrics endpoint service telemetry. (#10011) - (Contrib)
resourcedetectionprocessor
: Fetch CPU info only if related attributes are enabled (#33774) - (Contrib)
tailsamplingprocessor
: Fix precedence of inverted match in and policy (#33671)
Previously if the decision from a policy evaluation wasNotSampled
orInvertNotSampled
it would return aNotSampled
decision regardless, effectively downgrading the result.
This was breaking the documented behaviour that inverted decisions should take precedence over all others. - (Contrib)
vcenterreceiver
: Fixes errors in some of the client calls for environments containing multiple datacenters. (#33734)
Docker Image Manifests:
- Linux (amd64, arm64, ppc64le) and Windows (2019 amd64, 2022 amd64):
quay.io/signalfx/splunk-otel-collector:0.104.0
- digest:
sha256:9574cfabb6e4cdef289fdb980bffc3230ce8c7bbef43d0c89eec4273ffcec000
- Windows (2019 amd64, 2022 amd64):
quay.io/signalfx/splunk-otel-collector-windows:0.104.0
- digest:
sha256:0b1c21cd3a22ab8af5948e6470ab4f3bae2c0eca189e516f5e82df56c521e3cd