-
Notifications
You must be signed in to change notification settings - Fork 331
Datadog exporter improvements #5609
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2321d30
Minimal changes to support all spans being measured
a53ab53
Backport latest datadog exporter
8b3bca2
Lint
f880596
Add exporter wrapper to support measurement
350fe61
Use span.kind rather than span.type
636f571
Add tests, add missing span to consts.rs
1e7ff60
Lint
e23fed8
Merge branch 'dev' into bryn/datadog-exporter
BrynCooke bd854c3
Fix tests failing dure to missing removal of gated features
9eaa4de
Add `span_metrics` to docs and fix some other minor issues on the sam…
7b8fb68
Changelog and minor docs fixes
fadfc33
Lint
e573a7c
Merge branch 'dev' into bryn/datadog-exporter
abernix a2514f0
Apply suggestions from code review
abernix a98bfbb
Merge branch 'dev' into bryn/datadog-exporter
abernix 8c5c093
Update docs/source/configuration/telemetry/exporters/tracing/datadog.mdx
BrynCooke 3ee8b3a
Fix comment for `span_metrics`
0390461
Remove datadog client changes
0a03e4b
Remove datadog client changes
a01bfbf
Merge branch 'dev' into bryn/datadog-exporter
acdda50
Json schema update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ### Datadog `span.kind` now populated ([PR #5609](https://github.com/apollographql/router/pull/5609)) | ||
|
|
||
| Datadog traces use `span.kind` to differentiate between different types of spans. | ||
| This change ensures that the `span.kind` is correctly populated using the Open Telemetry span kind which has a 1-2-1 mapping to those set out in [dd-trace](https://github.com/DataDog/dd-trace-go/blob/main/ddtrace/ext/span_kind.go). | ||
|
|
||
| By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/5609 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| ### Datadog span metrics are now supported ([PR #5609](https://github.com/apollographql/router/pull/5609)) | ||
|
|
||
| When using the APM view in Datadog, span metrics will be displayed for any span that was a top level span or has the `_dd.measured` flag set. | ||
|
|
||
| Apollo Router now sets the `_dd.measured` flag by default for the following spans: | ||
|
|
||
| * `request` | ||
| * `router` | ||
| * `supergraph` | ||
| * `subgraph` | ||
| * `subgraph_request` | ||
| * `http_request` | ||
| * `query_planning` | ||
| * `execution` | ||
| * `query_parsing` | ||
|
|
||
| You can override this behaviour to enable or disable span metrics for any span by setting the `span_metrics` configuration in the Datadog exporter configuration. | ||
|
|
||
| ```yaml | ||
| telemetry: | ||
| exporters: | ||
| tracing: | ||
| datadog: | ||
| enabled: true | ||
| span_metrics: | ||
| # Disable span metrics for supergraph | ||
| supergraph: false | ||
| # Enable span metrics for my_custom_span | ||
| my_custom_span: true | ||
| ``` | ||
|
|
||
| By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/5609 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
apollo-router/src/plugins/telemetry/tracing/datadog_exporter/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| This is temporary interning of the datadog exporter until we update otel. | ||
| The newest version of the exporter does support setting span metrics, but we | ||
| can't upgrade until we upgrade Otel. | ||
|
|
||
| Once otel is upgraded, we can remove this code and use the exporter directly. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.