Skip to content

[feature] [SQS] Inject trace data to message metadata#1807

Merged
Czechh merged 20 commits intomasterfrom
sergio.prada/inject-trace-data-to-message-meta-sqs
Nov 20, 2020
Merged

[feature] [SQS] Inject trace data to message metadata#1807
Czechh merged 20 commits intomasterfrom
sergio.prada/inject-trace-data-to-message-meta-sqs

Conversation

@Czechh
Copy link
Contributor

@Czechh Czechh commented Nov 16, 2020

Description

We inject trace data into the MessageAttributes metadata. This is already done in dd-trace-js https://github.com/DataDog/dd-trace-js/blob/master/packages/datadog-plugin-aws-sdk/src/services/sqs.js#L39-L59

This will allow clients to extract the trace data and build better distributed tracing.

Checklist

  • Entry added to release notes using reno
  • Tests provided; and/or
  • Description of manual testing performed and explanation is included in the code and/or PR.
  • Library documentation is updated.
  • Corp site documentation is updated (link to the PR).

@Czechh Czechh changed the title add trace data to message meta in SQS [feature] [SQS] Inject trace data to message metadata Nov 17, 2020
@Czechh Czechh marked this pull request as ready for review November 17, 2020 15:38
@Czechh Czechh requested a review from a team as a code owner November 17, 2020 15:38
@Kyle-Verhoog Kyle-Verhoog added this to the 0.45.0 milestone Nov 18, 2020
@codecov-io
Copy link

codecov-io commented Nov 19, 2020

Codecov Report

Merging #1807 (5fdda16) into master (005846f) will decrease coverage by 5.60%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1807      +/-   ##
==========================================
- Coverage   80.36%   74.75%   -5.61%     
==========================================
  Files         546      546              
  Lines       37206    37376     +170     
==========================================
- Hits        29899    27942    -1957     
- Misses       7307     9434    +2127     
Impacted Files Coverage Δ
ddtrace/contrib/botocore/patch.py 0.00% <0.00%> (ø)
tests/contrib/botocore/test.py 0.00% <0.00%> (ø)
ddtrace/ext/elasticsearch.py 0.00% <0.00%> (-100.00%) ⬇️
ddtrace/contrib/grpc/utils.py 0.00% <0.00%> (-100.00%) ⬇️
tests/contrib/tornado/utils.py 0.00% <0.00%> (-100.00%) ⬇️
tests/contrib/grpc/hello_pb2.py 0.00% <0.00%> (-100.00%) ⬇️
ddtrace/contrib/tornado/patch.py 0.00% <0.00%> (-100.00%) ⬇️
ddtrace/contrib/grpc/constants.py 0.00% <0.00%> (-100.00%) ⬇️
tests/contrib/rediscluster/test.py 0.00% <0.00%> (-100.00%) ⬇️
ddtrace/contrib/tornado/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
... and 141 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 005846f...5fdda16. Read the comment docs.

Copy link
Member

@Kyle-Verhoog Kyle-Verhoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for the tests, just one comment and I think we're good to go.

…github.com:DataDog/dd-trace-py into sergio.prada/inject-trace-data-to-message-meta-sqs

* 'sergio.prada/inject-trace-data-to-message-meta-sqs' of github.com:DataDog/dd-trace-py:
  refactor(profiling): deprecate pyddprofile (#1816)
  chore(profiling): remove deprecated ddtrace.profile (#1817)
  ci: add coverage job (#1764)
Copy link
Member

@Kyle-Verhoog Kyle-Verhoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice job @Czechh!

@Czechh Czechh merged commit 5b71b7d into master Nov 20, 2020
@Czechh Czechh deleted the sergio.prada/inject-trace-data-to-message-meta-sqs branch November 20, 2020 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants