github open-telemetry/opentelemetry-go-contrib v1.48.0
v1.48.0/v2.7.0/v0.73.0/v0.39.0/v0.28.0/v0.21.1/v0.17.1/v0.20.0

one hour ago

Added

  • Add the cloud.region resource attribute on zonal GKE clusters, derived from cloud.availability_zone, in go.opentelemetry.io/contrib/detectors/gcp. (#10495)
  • Add go.opentelemetry.io/contrib/detectors/heroku, a new resource detector for Heroku dynos, ported from processor/resourcedetectionprocessor/internal/heroku in opentelemetry-collector-contrib. Detects cloud.provider, heroku.app.id, heroku.release.commit, heroku.release.creation_timestamp, service.instance.id, service.name, and service.version. (#10451)
  • Add NormalizeKey to go.opentelemetry.io/contrib/propagators/envcar so callers can derive canonical environment variable names for propagator fields. (#10357)
  • Add detection for Cloud Run instances and add the cloud.resource_id resource attribute for Cloud Run worker pools and Cloud Run instances in go.opentelemetry.io/contrib/detectors/gcp. (#10350)
  • Add WithGKEHostName option to go.opentelemetry.io/contrib/detectors/gcp to detect the host.name resource attribute on GKE. (#10399)
  • Add the cloud.resource_id resource attribute for Cloud Run services, Cloud Run jobs, and Cloud Functions in go.opentelemetry.io/contrib/detectors/gcp. (#10258)
  • Record the url.query attribute on HTTP server spans (with X-Amz-Signature, X-Amz-Credential, X-Amz-Security-Token, sig, and X-Goog-Signature query parameter values redacted to REDACTED) in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace, go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux, go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin, and go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful. (#10122)
  • Add WithIMDSTags option to go.opentelemetry.io/contrib/detectors/aws/ec2/v2 to add EC2 instance tags read from the instance metadata service as ec2.tag.<key> resource attributes. (#10086)
  • Add RouteMiddleware and WithRouteTracking option to preserve route telemetry across request-copying middleware in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#10096)
  • Support exemplars on exponential (native) histograms in go.opentelemetry.io/contrib/bridges/prometheus. (#10041)
  • Convert Prometheus UNIT metadata to UCUM units in go.opentelemetry.io/contrib/bridges/prometheus. (#10042)
  • Add the opt-in go.memory.detailed_type attribute to go.memory.used and go.cpu.detailed_state attribute to go.cpu.time in go.opentelemetry.io/contrib/instrumentation/runtime. (#10021)
  • Add WithMeterProvider and enable the http.server.request.duration, http.server.request.body.size, and http.server.response.body.size metrics by default in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful.
    Set OTEL_GO_X_HTTP_SPAN_ATTRIBUTES_OPTIN=http.response.body.size to record response body sizes on server spans. (#10055, #10359, #10450)
  • Add DefaultMinimumRefreshInterval and WithMinimumRefreshInterval to go.opentelemetry.io/contrib/instrumentation/runtime. (#10066)
  • Add WithHostID option to go.opentelemetry.io/contrib/detectors/k8sapi to detect the host.id resource attribute from the machine ID reported by the node's kubelet. (#9973)
  • Add support for the aws.lambda resource detector in go.opentelemetry.io/contrib/otelconf/x. (#9924)
  • Add WithNonErrorCodes option for NewServerHandler and NewClientHandler in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to prevent the handler from setting an error span status for specific gRPC codes. (#9209)
  • Add go.opentelemetry.io/contrib/detectors/alibabacloud, a new resource detector for Alibaba Cloud ECS instances and containers running on ECI, including pods on Alibaba Cloud Container Compute Service (ACS). Detects cloud.provider, cloud.platform, cloud.region, cloud.availability_zone, cloud.account.id, host.id, host.name, host.type, and host.image.id, matching the alibaba/ecs detector of the resourcedetectionprocessor in opentelemetry-collector-contrib. (#9905)
  • Add WithMaxAttempts and WithMaxBackoff options to go.opentelemetry.io/contrib/detectors/aws/ec2/v2 to configure the AWS SDK retry policy. (#9796)
  • Add Methods filter to go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/filters to match multiple HTTP methods. (#9630)
  • Add the experimental WithProbabilitySampling option to go.opentelemetry.io/contrib/samplers/jaegerremote, which makes probabilistic strategies follow the probability sampling specification using ProbabilitySampler from go.opentelemetry.io/otel/sdk/trace/x.
    It is disabled by default. (#9847)
  • Add the cloud.platform, aws.log.group.names, and aws.log.stream.names resource attributes to go.opentelemetry.io/contrib/detectors/aws/lambda, matching the lambda detector of the resourcedetectionprocessor in opentelemetry-collector-contrib. (#9606)
  • Add WithAttributeFilter to go.opentelemetry.io/contrib/detectors/aws/lambda to select which detected attributes are included in the returned resource. (#9606)
  • Add go.opentelemetry.io/contrib/detectors/azure/azureaks, a new resource detector for Azure Kubernetes Service, ported from processor/resourcedetectionprocessor/internal/azure/aks in opentelemetry-collector-contrib. Detects cloud.provider, cloud.platform, and k8s.cluster.name. (#9501)
  • Add Bare Metal Solution (BMS) detection, GCE Managed Instance Group (MIG) attributes, Cloud Run Worker Pool parity, and NewDetectorWithOptions with WithGKEHostType and WithGCEInstanceLabelKeyFilter to go.opentelemetry.io/contrib/detectors/gcp. (#9462, #10020)
  • Add go.opentelemetry.io/contrib/detectors/digitalocean, a new resource detector for DigitalOcean Droplets, ported from processor/resourcedetectionprocessor/internal/digitalocean in opentelemetry-collector-contrib. Detects cloud.provider, cloud.region, host.id, and host.name. (#9496)
  • Add go.opentelemetry.io/contrib/detectors/akamai — a new resource detector for Akamai Connected Cloud (formerly Linode) compute instances, ported from processor/resourcedetectionprocessor/internal/akamai in opentelemetry-collector-contrib. Detects cloud.provider, cloud.platform, cloud.account.id, cloud.region, host.id, host.name, host.type, host.image.id, and host.image.name. (#9492)
  • Add go.opentelemetry.io/contrib/detectors/openstack/nova, a new resource detector for OpenStack Nova compute instances, ported from processor/resourcedetectionprocessor/internal/openstack/nova in opentelemetry-collector-contrib. Detects cloud.provider, cloud.platform, cloud.account.id, cloud.availability_zone, host.id, host.name, and host.type, and optionally emits openstack.nova.meta.<key> attributes for the instance metadata keys selected with WithMetaKeyFilter. (#9486)
  • Add go.opentelemetry.io/contrib/detectors/ibmcloud/classic, a new resource detector for IBM Cloud Classic Infrastructure (SoftLayer) instances, ported from processor/resourcedetectionprocessor/internal/ibmcloud/classic in opentelemetry-collector-contrib. Detects cloud.provider, cloud.platform, cloud.account.id, cloud.availability_zone, cloud.resource_id, host.id, and host.name. (#9490)
  • Add the opt-in go.memory.gc.cycles, go.memory.gc.pause.duration, and go.cpu.time metrics to go.opentelemetry.io/contrib/instrumentation/runtime, enabled by listing them in the OTEL_GO_X_RUNTIME_METRICS_OPTIN environment variable. (#9882)
  • Add go.opentelemetry.io/contrib/detectors/alibaba/ecs, a new resource detector for Alibaba Cloud Elastic Compute Service (ECS) instances, ported from processor/resourcedetectionprocessor/internal/alibaba/ecs in opentelemetry-collector-contrib. Detects cloud.provider, cloud.platform, cloud.account.id, cloud.region, cloud.availability_zone, host.id, host.name, host.image.id, and host.type. (#9495)
  • Add go.opentelemetry.io/contrib/detectors/scaleway, a new resource detector for Scaleway Instances, ported from processor/resourcedetectionprocessor/internal/scaleway in opentelemetry-collector-contrib. Detects cloud.provider, cloud.platform, cloud.account.id, cloud.availability_zone, cloud.region, host.id, host.image.id, host.image.name, host.name, and host.type. (#9489)
  • Add go.opentelemetry.io/contrib/detectors/consul, a new resource detector that reads attributes from a Consul agent, ported from processor/resourcedetectionprocessor/internal/consul in opentelemetry-collector-contrib. Detects host.name, cloud.region, and host.id, plus opt-in consul.meta.<key> attributes for the Consul node meta entries selected with WithMetaKeyFilter. (#9388)
  • Add go.opentelemetry.io/contrib/detectors/tencent/cvm, a new resource detector for Tencent Cloud CVM instances, ported from github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/tencent/cvm. Detects cloud.provider, cloud.platform, cloud.account.id, cloud.region, cloud.availability_zone, host.id, host.name, host.image.id, and host.type. (#9497)
  • Add go.opentelemetry.io/contrib/detectors/dynatrace, a resource detector for hosts monitored by the Dynatrace OneAgent, ported from processor/resourcedetectionprocessor/internal/dynatrace in opentelemetry-collector-contrib. It reads the OneAgent host enrichment file dt_host_metadata.properties and sets the dt.entity.host, host.name, and dt.smartscape.host attributes. (#9491)
  • Add aws.sns.topic.arn from TopicArn to SNS Publish and PublishBatch spans in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#9954)
  • Add the opt-in http.client.active_requests metric to Transport in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, enabled by listing it in the OTEL_GO_X_HTTP_METRICS_OPTIN environment variable. (#10069)
  • Add the aws.ecs.task.id resource attribute, parsed from the task ARN, to go.opentelemetry.io/contrib/detectors/aws/ecs, matching the ecs detector of the resourcedetectionprocessor in opentelemetry-collector-contrib. (#10087)
  • Add the db.operation.name attribute to DynamoDB spans in the default attribute builder of go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#8295)
  • Add go.opentelemetry.io/contrib/detectors/upcloud, a new resource detector for UpCloud Cloud Servers, ported from processor/resourcedetectionprocessor/internal/upcloud in opentelemetry-collector-contrib. Detects cloud.provider, cloud.region, host.id, and host.name. (#9498)

Changed

  • ⚠️ Breaking Change: Make url.scheme opt-in on the http.client.request.duration, http.client.request.body.size, and http.client.active_requests metrics in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.
    To keep reporting it, include url.scheme in OTEL_GO_X_HTTP_METRIC_ATTRIBUTES_OPTIN. Client metrics also retain server.port for default http (80) and https (443) ports. (#10367)
  • ⚠️ Breaking Change: Use the HTTP method as the default client span name in Transport in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. Non-standard methods use HTTP. Update span name filters such as HTTP GET to GET. (#10332)
  • ⚠️ Breaking Change: Make http.client.request.body.size, http.server.request.body.size, and http.server.response.body.size opt-in in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.
    To continue collecting them, add the metric names to the comma-separated OTEL_GO_X_HTTP_METRICS_OPTIN environment variable. (#10359)
  • ⚠️ Breaking Change: Rename rpc.response.status_code to rpc.status_code on spans and metrics in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.
    Duration histograms use the 41 recommended gRPC boundaries, including zero. Configure an SDK View to override the boundaries. (#10343)
  • ⚠️ Breaking Change: Change system.memory.state from "free" to "available" for memory usage and utilization in go.opentelemetry.io/contrib/instrumentation/host.
    These measurements include reclaimable memory. Update filters that match "free". (#10343)
  • ⚠️ Breaking Change: Rename the SQS and SNS span attribute messaging.system to messaging.system.name in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws.
    The SQS system value changes from aws_sqs to aws.sqs. (#10343)
  • ⚠️ Breaking Change: Rename the Lambda span attribute faas.invocation_id to faas.invocation.id in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda. (#10343)
  • ⚠️ Breaking Change: Detect Cloud Run functions and Cloud Functions (2nd gen) as gcp_cloud_run in go.opentelemetry.io/contrib/detectors/gcp when both K_CONFIGURATION and FUNCTION_TARGET are set.
    Their cloud.resource_id now uses //run.googleapis.com/.../services/{name}. Update filters that match gcp_cloud_functions for these workloads. (#10350)
  • ⚠️ Breaking Change: Change the return type of NewMetricProducer in go.opentelemetry.io/contrib/bridges/prometheus from metric.Producer to *Producer.
    If you pass the constructor as a function value with the former signature, wrap the call in a function returning metric.Producer. (#10043)
  • ⚠️ Breaking Change: Change the return type of NewResourceDetector in go.opentelemetry.io/contrib/detectors/aws/lambda from resource.Detector to *ResourceDetector.
    If you pass the constructor as a function value with the former signature, wrap the call in a function returning resource.Detector. (#9606)
  • Update active instrumentation, resource detectors, examples, and shared templates to Semantic Conventions v1.45.0, and align resource schema URLs with the OTel Go SDK.
    The legacy v1.21.0 attributes emitted by go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo with OTEL_SEMCONV_STABILITY_OPT_IN=database/dup remain supported. (#10343)
  • Reduce heap allocations and latency during header extraction in go.opentelemetry.io/contrib/propagators/jaeger. (#10022)
  • Reduce heap allocations and latency during context tagging in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#10007)
  • Reduce heap allocations and latency during context injection in go.opentelemetry.io/contrib/propagators/aws/xray. (#9938)
  • Reduce allocations during context injection in go.opentelemetry.io/contrib/propagators/jaeger. (#9918)
  • Support build tags to omit resource detectors in go.opentelemetry.io/contrib/otelconf/x. (#9818)
  • Remove the deprecation notice from go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#9881)
  • Preserve unknown custom component configuration during JSON and YAML unmarshalling in go.opentelemetry.io/contrib/otelconf and go.opentelemetry.io/contrib/otelconf/x. (#9982)
  • Add ReadFrom support to the internal response writer wrapper template shared by go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp and go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux to track copied bytes and the last non-nil error. (#9804)
  • The default span name formatter in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux upper-cases the request method before matching it against known methods, so a lowercase get request is named GET <route> instead of HTTP <route>, matching http.request.method. (#9939)
  • Format the default server span name in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful as {method} {http.route} when a route matches and {method} when no route matches, following the HTTP semantic conventions. (#10053)
  • Record HTTP error status codes as error.type for client metrics in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#10358)
  • Updated example/dice app based on updated specifications for the reference application. (#8099)
  • Reduce heap allocations in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp by preallocating span-start options on server requests and skipping body wrappers and callbacks on requests without a body. (#9980, #10316)

Deprecated

  • WithPublicEndpoint in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful is deprecated.
    Use WithPublicEndpointFn instead. (#10052)
  • The go.opentelemetry.io/contrib/propagators/opencensus module and package are deprecated and will be removed in v0.74.0.
    v0.73.0 is the final planned release of this module.
    Use native OpenTelemetry propagators instead; see Migrating from OpenCensus. (#10030)
  • Deprecate DefaultMinimumReadMemStatsInterval and WithMinimumReadMemStatsInterval in go.opentelemetry.io/contrib/instrumentation/runtime in favor of DefaultMinimumRefreshInterval and WithMinimumRefreshInterval. (#10066)
  • The go.opentelemetry.io/contrib/propagators/ot module and package are deprecated.
    v1.48.0 is the final planned release of this module.
    Migrate to native OpenTelemetry APIs and SDKs with W3C Trace Context and W3C Baggage propagation. (#10047)

Fixed

  • ⚠️ Breaking Change: Omit http.route when no route template is available in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux.
    For these requests, the default span name uses the HTTP method or HTTP for unrecognized methods, and WithSpanNameFormatter receives an empty route.
  • ⚠️ Breaking Change: Change the SNS system value from aws_sns to the standardized aws.sns in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#10343)
  • ⚠️ Breaking Change: Treat with_resource_constant_labels: {} as an empty set of resource attributes to add as Prometheus metric labels in go.opentelemetry.io/contrib/otelconf/x, go.opentelemetry.io/contrib/otelconf/v0.3.0, and go.opentelemetry.io/contrib/otelconf/v0.2.0.
    To keep selected labels, list their resource attributes under included. (#10238)
  • ⚠️ Breaking Change: Set the server.address and server.port metric attributes from the configured server name in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux, and go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin.
    This bounds metric cardinality when clients send different Host headers.
    Use WithServerName in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to keep reporting them. (#9930)
  • Bound SpanProcessor in go.opentelemetry.io/contrib/zpages to retain at most 2000 active spans (evicting the oldest per shard when full) and samples for at most 2000 unique span names to prevent unbounded memory growth.
    Admitted span names are retained until SpanProcessor.Shutdown; once 2000 unique names are tracked, ended spans with unseen names are not sampled.
  • Honor WithoutHeaders() and header redaction options for 1xx response events in go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace.
  • NewSDK no longer modifies the backing array of the options passed to it when the configuration file environment variable is set in go.opentelemetry.io/contrib/otelconf and go.opentelemetry.io/contrib/otelconf/x. (#10476)
  • Release active and completed span state and ignore subsequent OnStart and OnEnd calls on SpanProcessor.Shutdown in go.opentelemetry.io/contrib/zpages. (#10416)
  • Use relative query links in the tracez summary table of go.opentelemetry.io/contrib/zpages so links work when the handler is mounted on custom paths. (#10414)
  • Bound Azure VM metadata requests to ten seconds and reject responses over 1 MiB in go.opentelemetry.io/contrib/detectors/azure/azurevm. (#10299)
  • Fix response body size accounting for copies through ReadFrom in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#10317)
  • Trim whitespace around every semicolon-separated part of the X-Amzn-Trace-Id header in go.opentelemetry.io/contrib/propagators/aws/xray, so a space before a non-final field such as Parent no longer drops the trace context. (#10336)
  • Send the Metadata header as true instead of True in go.opentelemetry.io/contrib/detectors/azure/azurevm, as the Azure Instance Metadata Service rejects requests with True. (#10264)
  • Use the sampling endpoint in go.opentelemetry.io/contrib/samplers/jaegerremote/example so the example applies the remote sampling strategy. (#10089)
  • Render all latency columns for active spans and add the missing closing anchor tag for error counts in the summary table of go.opentelemetry.io/contrib/zpages. (#10074)
  • Propagate the caller's context to metadata requests in go.opentelemetry.io/contrib/detectors/gcp so Detect honors context cancellation and deadlines. (#10085)
  • Format bracketed IPv6 MongoDB peer addresses without an explicit port correctly in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo. (#10101)
  • Fall back to the DockerId from the task metadata endpoint v4 for the container.id resource attribute in go.opentelemetry.io/contrib/detectors/aws/ecs when the cgroup parser finds no ID, and omit container.id instead of setting it to an empty string.
    The parser only matches 64-hex IDs, so it finds none on Fargate, and it may also find none when /proc/self/cgroup has no /ecs/ path. (#10128)
  • Do not include the port in the network.peer.address attribute in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo, it is recorded as network.peer.port. (#10110)
  • Allow omitted and null endpoints in OTLP exporter configuration in go.opentelemetry.io/contrib/otelconf and go.opentelemetry.io/contrib/otelconf/x, unmarshaling to nil to use the default endpoint per the v1.0.0 configuration schema. (#10076)
  • Deduplicate propagator names in go.opentelemetry.io/contrib/propagators/autoprop to avoid repeated injection and extraction. (#9956)
  • Do not record HTTP/2 pseudo-header fields (:authority, :method, :path, :scheme) as http.request.header.* span attributes in NewClientTrace of go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace, so the query string in :path is no longer exported unredacted. (#10015)
  • Decode hex-encoded trace_id and span_id exemplar labels into binary TraceID and SpanID bytes in go.opentelemetry.io/contrib/bridges/prometheus. (#10041)
  • Preserve MultipartForm on the original http.Request when OTelFilter substitutes the request context in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful, so net/http.Server cleans up temporary multipart files when the request finishes. (#10054)
  • Set the semantic convention SchemaURL on the Meter in Start and the instrumentation.Scope returned by Producer.Produce in go.opentelemetry.io/contrib/instrumentation/runtime. (#10067)
  • Omit the http.route attribute on unmatched routes (404/405) instead of recording the go-restful WebService root path prefix from http.Request.Pattern in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful. (#10053)
  • Omit source attributes in go.opentelemetry.io/contrib/bridges/otelslog when WithSource(true) is enabled but no caller frame is available. (#9991)
  • Redact the values of the X-Amz-Signature, X-Amz-Credential, X-Amz-Security-Token, sig, and X-Goog-Signature query parameters from the url.full attribute recorded on client spans by go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, as required by the semantic conventions. (#9950)
  • Resolve the Docker container ID from cgroup data, with a /proc/self/mountinfo fallback for private cgroup namespaces, so custom hostnames do not disable detection. Fall back to hostname lookup when neither source provides an ID or the Docker daemon does not recognize it. (go.opentelemetry.io/contrib/detectors/docker) (#10019)
  • Record client metrics in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp when the request body is read to EOF but never closed, as done by retrying RoundTrippers such as go-retryablehttp. (#10008)
  • Reduce heap allocations on Inject in go.opentelemetry.io/contrib/propagators/b3. (#9870, #9983)
  • Fix response body size accounting for copies through ReadFrom in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#9998)
  • Type AdditionalProperties as map[string]any in the generated config structs of go.opentelemetry.io/contrib/otelconf and go.opentelemetry.io/contrib/otelconf/x so mapstructure's ,remain decoder no longer fails on a bare interface{}. (#8850)
  • Prevent recording negative metric values for unknown request/response sizes in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#9433)
  • Configure the global diagnostic logger from log_level in go.opentelemetry.io/contrib/otelconf and go.opentelemetry.io/contrib/otelconf/x, defaulting to info when unspecified and rejecting unsupported levels. (#9965)
  • Prevent integer overflow when configuring the polling interval for the Jaeger remote sampler via the OTEL_TRACES_SAMPLER_ARG environment variable in go.opentelemetry.io/contrib/samplers/jaegerremote. (#10027)
  • Match exact key names during header extraction in go.opentelemetry.io/contrib/propagators/aws/xray to prevent auxiliary fields with prefix-sharing keys from dropping trace contexts. (#9879)
  • Reject null entries in resource.attributes during YAML and JSON parsing in go.opentelemetry.io/contrib/otelconf, go.opentelemetry.io/contrib/otelconf/x and go.opentelemetry.io/contrib/otelconf/v0.3.0. (#9970)
  • Preserve errors returned by http.ResponseController.Flush through go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp and go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#9798)
  • Replace inherited debug and deferred sampling flags when extracting a new B3 context in go.opentelemetry.io/contrib/propagators/b3. (#9864)
  • Use a background context for entries without an explicit context in go.opentelemetry.io/contrib/bridges/otellogrus. (#9865)
  • Preserve explicit Unix epoch timestamps (TimestampMs = 0) instead of replacing them with the current time in go.opentelemetry.io/contrib/bridges/prometheus. (#9837)
  • Keep an existing query and fragment when the Jaeger remote sampler sets the service parameter in go.opentelemetry.io/contrib/samplers/jaegerremote. (#9886)
  • Support bare IPv4 host-and-port endpoints (e.g., 127.0.0.1:4317) for OTLP gRPC exporters in go.opentelemetry.io/contrib/otelconf, go.opentelemetry.io/contrib/otelconf/x and go.opentelemetry.io/contrib/otelconf/v0.3.0. (#9936)
  • Remove the inbound th tracestate value when a rate limiting strategy makes the sampling decision in go.opentelemetry.io/contrib/samplers/jaegerremote, since the decision is not probabilistic. (#9847)
  • Replace inherited debug state when extracting a valid header in go.opentelemetry.io/contrib/propagators/jaeger. (#9898)
  • go.opentelemetry.io/contrib/detectors/aws/lambda no longer reports cloud.region, faas.version, and faas.instance as empty strings when their environment variables are unset; the attributes are omitted instead. (#9606)
  • Ignore empty group names in go.opentelemetry.io/contrib/bridges/otelslog as required by slog.Handler. (#9817)
  • Prevent go.opentelemetry.io/contrib/detectors/azure/azureappservice from detecting Azure Functions when only FUNCTIONS_EXTENSION_VERSION is set. (#9816)
  • Use the context bound to a logger when checking whether logs are enabled in go.opentelemetry.io/contrib/bridges/otellogr and go.opentelemetry.io/contrib/bridges/otelzap. (#9878)
  • Fix go.schedule.duration datapoints returned by Producer in go.opentelemetry.io/contrib/instrumentation/runtime having their bucket counts overwritten by later collections, and a data race between concurrent Produce calls. (#9882)
  • Retain the last non-nil write error instead of letting a later successful write clear it in the response writer wrapper of go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp and go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#9790)
  • Ignore a zero or negative refresh interval from WithSamplingRefreshInterval or pollingIntervalMs in OTEL_TRACES_SAMPLER_ARG in go.opentelemetry.io/contrib/samplers/jaegerremote, preserving the previously configured interval, or the default when none was configured, instead of panicking in time.NewTicker. (#9999)
  • Fix WithValues in go.opentelemetry.io/contrib/bridges/otellogr so loggers derived from the same parent no longer overwrite each other's attributes or race on them. (#9994)
  • Resolve slog.LogValuer values before applying the empty-key rules in go.opentelemetry.io/contrib/bridges/otelslog, so a valuer with an empty key that resolves to a group is inlined and one that resolves to an empty value is dropped, as required by slog.Handler. (#10014)
  • Set error.type on the server span and on the request-duration, request-body-size, and response-body-size metrics in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux when a request fails.
    A detected cause also sets span status to Error, even for non-5xx responses. (#9754)
  • Accept any 2xx status for the instance identity token request in go.opentelemetry.io/contrib/detectors/ibmcloud/vpc. The IMDS Identity API returns 201 Created for the token PUT, which the detector previously rejected, silently returning an empty resource on real IBM Cloud VPC instances. (#9671)
  • Limit HTTP response body to 4 MiB in go.opentelemetry.io/contrib/samplers/jaegerremote to mitigate excessive memory usage caused by a misconfigured or malicious sampling server.
  • Do not include header values in the error returned for an invalid headers_list in go.opentelemetry.io/contrib/otelconf, go.opentelemetry.io/contrib/otelconf/x and go.opentelemetry.io/contrib/otelconf/v0.3.0.
    The values usually hold credentials, such as the token in Authorization=Bearer <token>, and the error is commonly logged. (#10117)
  • Set host.type to only the machine type (e.g. e2-medium) instead of the full projects/PROJECT_NUM/machineTypes/MACHINE_TYPE metadata value in go.opentelemetry.io/contrib/detectors/gcp, following the semantic conventions. (#9696)

Removed

  • Remove the deprecated runtime metrics and the OTEL_GO_X_DEPRECATED_RUNTIME_METRICS environment variable in go.opentelemetry.io/contrib/instrumentation/runtime. (#10060)
  • Remove support for the rpc/old and rpc/dup values of OTEL_SEMCONV_STABILITY_OPT_IN in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#9908)
  • Remove the exported Transport type from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.
    NewTransport now returns http.RoundTripper. Use that interface in declarations and function signatures. (#9955)

What's Changed

New Contributors

Full Changelog: v1.47.0...v1.48.0

Don't miss a new opentelemetry-go-contrib release

NewReleases is sending notifications on new releases.