Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oddgrd opened this issue Sep 26, 2024 · 4 comments
Labels
bug Something isn't working connector/datadog

Comments

@oddgrd
Copy link

oddgrd commented Sep 26, 2024

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:

  • Downgraded the version to v0.107.0, but I was still not receiving metrics data.
  • I downgraded to v0.106.1, and observed that we were receiving tracing application metrics again.
  • I then took a closer look at the v0.107.0 release notes, and noticed that the connect.datadogconnector.NativeIngest feature was now enabled by default in [connector/datadog] Move feature gate connector.datadogconnector.NativeIngest to beta #34549.
  • After disabling this feature, I started seeing tracing application metrics in Datadog again, while still on v0.107.0.
  • I then tried updating to v0.110.0, in case there was some other change that fixed my issue. I still saw tracing metrics data with the feature disabled.
  • I then deployed v0.110.0 with the feature enabled, and saw that the metrics data was absent again, like it was on v0.107 and v0.108.

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

  • Upgrade to v0.107.0 or v0.110.0 and see if you stop receiving data for your tracing application metrics in Datadog.
  • If you don't receive metrics data, try disabling the feature with --feature-gates=-connector.datadogconnector.NativeIngest.
  • See if you are receiving tracing application metrics data in Datadog again.

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

@oddgrd oddgrd added bug Something isn't working needs triage New item requiring triage labels Sep 26, 2024
@oddgrd oddgrd changed the title Missing tracing application metrics data in Datadog after upgrading to v0.107 or higher [connector/datadog] Missing tracing application metrics data in Datadog after upgrading to v0.107 or higher Sep 26, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@songy23
Copy link
Member

songy23 commented Sep 27, 2024

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

@oddgrd
Copy link
Author

oddgrd commented Sep 27, 2024

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.

@atoulme atoulme removed the needs triage New item requiring triage label Oct 12, 2024
@rubencc
Copy link

rubencc commented Nov 5, 2024

Hi, I have the same situation.

Is there any way to solve this?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working connector/datadog
Projects
None yet
Development

No branches or pull requests

4 participants