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

feat: Add Datadog as an exporter for OTLP traces #2083

Merged
merged 3 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added examples/images/datadog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions examples/tracing/otlp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,36 @@ To run this example application you'll need:
1. Select `serviceName=flipt` from the search box
1. Click 'Run Query'
1. You should see a list of traces to explore

### Datadog UI

!['Datadog Example'](../../images/datadog.png)

For exporting traces from [OpenTelemetry to Datadog](https://docs.datadoghq.com/opentelemetry/otel_collector_datadog_exporter) you have to configure the exporter in the `otel-collector-config.yaml`:

```yaml
exporters:
datadog:
api:
site: datadoghq.com
key: ${DD_API_KEY}
```

**Note:** The `DD_API_KEY` should be replaced with your actual api key from Datadog.

Furthermore, you also have to add `datadog` as an entry in `exporters` under `service.pipelines.traces.exporters`.

For example:

```yaml
service:
extensions: [pprof, zpages, health_check]
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, zipkin, jaeger, datadog]
```

1. Open the Datadog traces UI under the menu item on the left `APM` then `Traces`
1. You should see a list of traces to explore
Loading