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 support for distributed traces #77

Merged
merged 4 commits into from
May 27, 2022

Conversation

majorgreys
Copy link
Contributor

Add support for distributed traces where an instrumented service sends a trace chunk where the root span has a parent not in the trace chunk.

@majorgreys majorgreys marked this pull request as draft May 27, 2022 14:24
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.

We should have an integration snapshot test with a distributed trace (shouldn't be too bad to add to test_snapshot_integration.py).

We'll have to figure out if we should leave the parent id as it is received or if we normalize it at all. I also suspect the snapshot logic assumes that all span ids have corresponding spans in the trace

ddapm_test_agent/trace.py Outdated Show resolved Hide resolved
@majorgreys majorgreys marked this pull request as ready for review May 27, 2022 17:56
@majorgreys
Copy link
Contributor Author

Blocked on DataDog/sketches-py#55

@Kyle-Verhoog
Copy link
Member

DataDog/sketches-py#55 merged and released: https://pypi.org/project/ddsketch/2.0.3/

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.

can we just add a bullet point here: https://github.com/DataDog/dd-apm-test-agent#snapshot-output

to state how distributed traces (when some spans aren't sent) are handled?

once that's done then LGTM 🙌

setup.py Outdated Show resolved Hide resolved
@Kyle-Verhoog Kyle-Verhoog added this to the 1.4.0 milestone May 27, 2022
majorgreys and others added 2 commits May 27, 2022 15:22
README.md Show resolved Hide resolved
@Kyle-Verhoog Kyle-Verhoog merged commit 5b6c838 into master May 27, 2022
@Kyle-Verhoog Kyle-Verhoog deleted the majorgreys/trace-chunk branch May 27, 2022 22:02
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