open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.96k stars 2.3k forks source link

[connector/datadog] Missing tracing application metrics data in Datadog after upgrading to v0.107 or higher #35437

Open oddgrd opened 1 week ago

oddgrd commented 1 week ago

Component(s)

connector/datadog

What happened?

Description

After upgrading opentelemetry-collector-contrib from v0.103.0 to v0.108.0, we realized that we were missing tracing application metrics in Datadog. I couldn't identify any clear breaking change from the release docs, so I:

This is my first issue in this repository, so let me know if anything is missing, and I'll be happy to add it!

Steps to Reproduce

Expected Result

I should continue to receive tracing applications metric data in Datadog after upgrading to v0.107.0.

Actual Result

I stopped receiving data for my existing metrics in Datadog.

Collector version

v0.107.0, v0.108.0, v0.110.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04") Compiler(if manually compiled): (e.g., "go 14.2")

I experienced the issue with the docker.io/otel/opentelemetry-collector-contrib:0.110.0 image.

OpenTelemetry Collector configuration

---
receivers:
  otlp:
    protocols:
      http:
        endpoint: 127.0.0.1:4318
  prometheus:
    config:
      scrape_configs:
        - job_name: otel-collector
          scrape_interval: 10s
          static_configs:
          - targets:
              - 127.0.0.1:8888
        - job_name: component-metrics
          metrics_path: "/metrics"
          scrape_timeout: 5s
          scrape_interval: 10s
          static_configs:
            - targets:
                - 127.0.0.1:9090

processors:
  batch:
    timeout: 10s
    send_batch_size: 10
    send_batch_max_size: 100
  attributes:
    actions:
      - key: env
        value: ${env:ENV}
        action: insert
  resource:
    attributes:
      - key: deployment.environment
        action: upsert
        value: ${env:ENV}

# Needed for DD trace metrics generation, see https://docs.datadoghq.com/opentelemetry/guide/migration/
connectors:
  datadog/connector:
    traces:
      span_name_as_resource_name: true

exporters:
  datadog/exporter:
    api:
      site: datadoghq.eu
      key: ${env:DD_API_KEY}
    traces:
      trace_buffer: 25
      span_name_as_resource_name: true
    host_metadata:
      enabled: false

extensions:
  health_check:
service:
  extensions:
    - health_check
  pipelines:
    traces:
      receivers:
        - otlp
      processors:
        - batch
        - attributes
      exporters:
        - datadog/exporter
        - datadog/connector
    logs:
      receivers:
        - otlp
      processors:
        - batch
        - attributes
      exporters:
        - datadog/exporter
    metrics:
      receivers:
        - otlp
        - prometheus
        - datadog/connector
      processors:
        - batch
        - attributes
      exporters:
        - datadog/exporter

Log output

There was no change in collector logs after the update.

Additional context

No response

github-actions[bot] commented 1 week ago

Pinging code owners:

songy23 commented 6 days ago

Hi can you file a ticket via https://datadoghq.com/support/ with some some output from fileexporter or debugexporter?

oddgrd commented 6 days ago

Hi can you file a ticket via https://datadoghq.com/support/ with some some output from fileexporter or debugexporter?

Sure! I'll try to make time for it next week.