github signalfx/splunk-otel-collector v0.104.0

latest releases: v0.112.0, v0.111.0, v$1.$2.3...
4 months ago

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 property SPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED to the value of another env var, K8S_ENVIRONMENT.
For versions older than 0.104.0, setting it as SPLUNK_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 to SPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=\${K8S_ENVIRONMENT}.

🛑 Breaking changes 🛑

  • (Splunk) Auto Discovery for Linux:
    • Update splunk-otel-java to v2.5.0 for the splunk-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.
  • (Core) filter: Remove deprecated filter.CombinedFilter (#10348)
  • (Core) otelcol: By default, otelcol.NewCommand and otelcol.NewCommandMustSetProvider will set the DefaultScheme to env. (#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 the confmap.unifyEnvVarExpansion feature gate. (#10435)
  • (Core) otlpreceiver: Switch to localhost as the default for all endpoints. (#8510)
    Disable the component.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 property SPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED to the value of another env var, K8S_ENVIRONMENT. For versions older than 0.104.0, setting it as SPLUNK_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 to SPLUNK_DISCOVERY_EXTENSIONS_k8s_observer_ENABLED=\${K8S_ENVIRONMENT}
  • (Contrib) vcenterreceiver: Drops support for vCenter 6.7 (#33607)
  • (Contrib) all: Promote component.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 default OTEL_EXPORTER_OTLP_ENDPOINT value for each activated SDK
      • Add new --otlp-endpoint-protocol <protocol> option to set the OTEL_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 the OTEL_METRICS_EXPORTER environment variable for instrumentation metrics. Specify none to disable metric collection and export.
  • (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 the GOGC environment variable to 100.
  • (Splunk) Upgrade to golang 1.21.12 (#5074)
  • (Core) confighttp: Add support for cookies in HTTP clients with cookies::enabled. (#10175)
    The method confighttp.ToClient will return a client with a cookiejar.Jar which will reuse cookies from server responses in subsequent requests.
  • (Core) exporter/debug: In normal verbosity, display one line of text for each telemetry record (log, data point, span) (#7806)
  • (Core) exporter/debug: Add option use_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 exposing k8s.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: Add server.address and server.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 a schema_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 was NotSampled or InvertNotSampled it would return a NotSampled 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

Don't miss a new splunk-otel-collector release

NewReleases is sending notifications on new releases.