-
Notifications
You must be signed in to change notification settings - Fork 272
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
Add support for custom attributes for spans and logs #4102
Merged
Merged
Changes from 23 commits
Commits
Show all changes
109 commits
Select commit
Hold shift + click to select a range
c3919d5
wip
bnjjj 4b4f703
custom dynamic attributes is working for logs and spans
bnjjj 2d7c51c
wip
bnjjj 0903984
add support of custom attributes in json formatter
bnjjj e69c986
wip
bnjjj 639c3e7
Attributes workaround
676e4e4
supergraph done, missing subgraph
bnjjj 3e9a77b
add support of custom attributes for subgraph
bnjjj bbdc0e8
add better implementation of dynamic attributes with sampling
bnjjj c68a14f
fix lint
bnjjj d39f85c
Merge branch 'dev' of github.com:apollographql/router into bnjjj/cust…
bnjjj df02c43
fix tests
bnjjj 448d8b8
comment dyn attribute in text formatter
bnjjj 9def3e3
use otel constants
bnjjj cb1d523
add support of requirement level
bnjjj 3f94291
lint
bnjjj 3874345
address review comments
bnjjj d18beda
Merge dev
b3c2efb
address review comments
bnjjj f53e188
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 316f48d
remove chrono and fix attribute name for subgraph
bnjjj 5eaa07a
Split attributes.rs
80e4c95
Move remaining selector only stuff from attributes.rs to selectors.rs
fc731a9
remove useless print and comment
bnjjj 8c3bd0c
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 6528a26
Add some tests, fix baggage.
6479545
Add tests for trace id.
9fd343a
Add env test
616c821
Add more tests for env
a12330e
Fix clippy issues
882bab4
Add selectors test for operations
BrynCooke ffc5e9a
Fix operation name hash and add test
c06b887
Fix subgraph supergraph operation name hash and add test
2a8cf4c
Fix subgraph subgraph operation name hash and add tests
44c56fa
Add query selector and tests
1acae79
Add response_status and tests
ae5bf38
Add tests for query variable.
681d076
Add subgraph response status
a1a95bc
Skip new telemetry config that won't be supported in initial drop
e34dfad
Fix datadog trace IDs
76452d5
Fix snapshot
a46b1a7
Factor out baggage logic and add tests.
f7caed8
Remove AttributeValue::U128.
a9ef3c3
wip
bnjjj cc64b6d
delete useless code
bnjjj 238b932
fix apollo telemetry
bnjjj a41c9c1
fix jaeger test
bnjjj bffe3e6
fix snapshot
bnjjj 1e81827
Update schema snap
3df1cdd
Replace use of AttributeValue with opentelemetry::Value
2699e70
Lint
12d0098
Update schema snapshot
947a295
add more snapshot tests for legacy_request_span option
bnjjj 755291d
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 7f55f46
Dry to_otel_value.
1c4c09a
add http.method attribute on request span to avoid breaking change
bnjjj 86be403
fix rhai tests
bnjjj a8574a8
Merge branch 'bnjjj/custom_attributes_telemetry' into bnjjj/legacy_re…
6b89bea
Set legacy request span for integration tests.
76ca546
Add span factory to allow us to switch between legacy and new mode.
692ef02
Add span factory to allow us to switch between legacy and new mode. (…
bnjjj 55de44b
fix tests and integrate span mode
bnjjj 7d1867d
rename mode legacy to deprecated
bnjjj 6163566
Add support for `telemetry.spans.mode` (#4139)
bnjjj 46571d1
add usage metrics for spans configuration
bnjjj e6bb2df
Add config for new logging (#4165)
BrynCooke 46abd1e
filter apollo_private when adding dyn attributes on unsampled spans
bnjjj 670c588
fix text formatter with span attributes
bnjjj 0603f84
fix config file for testdata
bnjjj f00384d
fix snapshot
bnjjj 0b9c836
few improvements
bnjjj f911028
Allow log format as a string.
375fa8c
Fix lints
31bb81c
review comments
bnjjj 0181124
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 71e3925
fix lint
bnjjj adbfb36
remove useless logging configuration
bnjjj 6dd98e7
Merge branch 'dev' of github.com:apollographql/router into bnjjj/cust…
bnjjj f8aec5a
Move `experimental_logging.when_header` to `logging.experimental_when…
879b25a
Move `experimental_logging.when_header` to `logging.experimental_when…
f6d2686
Improve metrics a little and add license checks.
36c30ab
Rename logging_new to logging now the original logging field has gone.
a24679a
fix experimental notice
bnjjj a3074dc
Add the ability to set servicename and service namespace from logging
5b404ef
Make formatters use config directly rather than copying field by field.
746e1e7
fix test
bnjjj 7d69ab9
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 1bcb533
Rename Trace to TracingCommon for consistency
32b1dbe
update snapshots
bnjjj 1a4498e
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 5d17679
Rename `new` mode to `spec_compliant`
5af8456
Add resource support to logging.
fb00e16
Migrate telemetry.(logging|tracing|metrics) to telemetry.exporters.(l…
5832540
Change name of GetAttribute and GetAttributes to Selector and Selectors.
e7f0948
Add missing snapshot
8c5795b
temp
af7defd
Lint
1ad350b
Conditions tests
961a9d9
Fix tests
478c8af
Finish tests for conditions.
266db72
telemetry: get rid of the tracing_fmt layer and use our own optimized…
bnjjj cee76f4
Remove many of the dead_code statements.
d92a13f
Add tests for attributes, fix bugs found once tests were added.
4612e00
telemetry: add tests for the formatting layer (#4209)
bnjjj 9572725
Move some code around for `defaults_for_level`.
4dab1b0
Add more tests for span attributes.
103f575
Merge branch 'dev' of github.com:apollographql/router into bnjjj/cust…
bnjjj 9c222e2
Merge branch 'bnjjj/custom_attributes_telemetry' of github.com:apollo…
bnjjj 18b4165
Fix dev mode
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 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 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
2,326 changes: 2,274 additions & 52 deletions
2,326
...r/src/configuration/snapshots/apollo_router__configuration__tests__schema_generation.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is odd 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, otel Value doesn't support u128 unfortunately