-
Notifications
You must be signed in to change notification settings - Fork 9
feat: Implement baggage span tags feature #246
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 13 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
de30bb6
TODO: Change the configuration from individual entries to one csv for…
zacharycmontoya 084e7f4
Two changes in one:
zacharycmontoya 9c358a5
Convert the combined `datadog_baggage_span_tags` directive to individ…
zacharycmontoya 3482602
Refactor and format test_baggage_span_tags.py. Also had a general dis…
zacharycmontoya 290cf4a
Small update to example conf
zacharycmontoya 4936a7e
Small code comment update
zacharycmontoya e07bfa5
Update baggage_span_tags field from an unordered_set to a vector
zacharycmontoya 577d0c3
Fix bug so that specifying one span tag with the wildcard key "*" obt…
zacharycmontoya 82e66e8
Move calculation of baggage span tags to configuration-time so that w…
zacharycmontoya 202fa63
Change the directive again: The user must set the 'datadog_baggage_sp…
zacharycmontoya 50de5ec
Update the API docs with a more complete description of the two direc…
zacharycmontoya ae00942
Satisfy linter
zacharycmontoya d02fdaa
Satisfy clang-format-14 formatting
zacharycmontoya 172732c
PR Feedback: Update tests to use tuples instead of lists
zacharycmontoya 7bec512
PR Feedback: Implement changes except for directive name, directive d…
zacharycmontoya 01316b0
PR Feedback: Update the baggage_span_tags field to have the type 'std…
zacharycmontoya 341fdb7
Update docs for the baggage span_tags feature
zacharycmontoya b9eee16
Update test cases to ensure that if both "datadog_baggage_span_tags …
zacharycmontoya 6a589e6
refactor: Large rename of "datadog_baggage_span_tags" to "datadog_bag…
zacharycmontoya 4ae1f47
refactor: Rename the "datadog_baggage_tags" directive to "datadog_bag…
zacharycmontoya 2672a55
Update the 'datadog_baggage_tags_keys' directive so it's first argume…
zacharycmontoya c72e391
Run formatter
zacharycmontoya c0b8928
Address an edge case: Throw a configuration error, when in the same c…
zacharycmontoya 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
Some comments aren't visible on the classic Files Changed page.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This test verifies that the expected baggage span tags are added to spans produced by | ||
the nginx module. | ||
|
||
Some tags are defined by default (see `TracingLibrary::default_baggage_span_tags` in the | ||
module source), while others can be defined by the user via the `datadog_baggage_span_tag` | ||
configuration directive. |
Empty file.
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,21 @@ | ||
# "/datadog-tests" is a directory created by the docker build | ||
# of the nginx test image. It contains the module, the | ||
# nginx config, and "index.html". | ||
load_module /datadog-tests/ngx_http_datadog_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
datadog_agent_url http://agent:8126; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location /http { | ||
proxy_pass http://http:8080; | ||
} | ||
} | ||
} |
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,22 @@ | ||
# "/datadog-tests" is a directory created by the docker build | ||
# of the nginx test image. It contains the module, the | ||
# nginx config, and "index.html". | ||
load_module /datadog-tests/ngx_http_datadog_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
datadog_agent_url http://agent:8126; | ||
datadog_baggage_span_tags snazzy.tag fancy.tag; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location /http { | ||
proxy_pass http://http:8080; | ||
} | ||
} | ||
} |
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,22 @@ | ||
# "/datadog-tests" is a directory created by the docker build | ||
# of the nginx test image. It contains the module, the | ||
# nginx config, and "index.html". | ||
load_module /datadog-tests/ngx_http_datadog_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
datadog_agent_url http://agent:8126; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location /http { | ||
datadog_baggage_span_tags snazzy.tag fancy.tag; | ||
proxy_pass http://http:8080; | ||
} | ||
} | ||
} |
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,23 @@ | ||
# "/datadog-tests" is a directory created by the docker build | ||
# of the nginx test image. It contains the module, the | ||
# nginx config, and "index.html". | ||
load_module /datadog-tests/ngx_http_datadog_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
datadog_agent_url http://agent:8126; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
datadog_baggage_span_tags snazzy.tag fancy.tag; | ||
|
||
location /http { | ||
proxy_pass http://http:8080; | ||
} | ||
} | ||
} |
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,22 @@ | ||
# "/datadog-tests" is a directory created by the docker build | ||
# of the nginx test image. It contains the module, the | ||
# nginx config, and "index.html". | ||
load_module /datadog-tests/ngx_http_datadog_module.so; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
datadog_agent_url http://agent:8126; | ||
datadog_baggage_span_tags_enabled off; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location /http { | ||
proxy_pass http://http:8080; | ||
} | ||
} | ||
} |
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.