-
Couldn't load subscription status.
- Fork 485
feat: v1 trace protocol implementation #3947
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
Open
hannahkm
wants to merge
73
commits into
main
Choose a base branch
from
hannahkm/implement-v1-serialization
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
f5d87c3
draft: create v04 and v1 with interface
hannahkm 25440fd
move trace chunk to payload.go
hannahkm d0635e4
feat(tracer): implement msgp serialization for payloadV1 and spanListV1
darccio 478ef22
added missing spanlistv1 type
hannahkm 230633a
finish cherry picking dario's PR
hannahkm c0f2493
fix newPayload and spanlist type
hannahkm 1e941ac
wip: encode anyvalue and keyvalue
hannahkm dc00fd3
move spanLinkV1 into payload_v1
hannahkm 98d30ce
wip: encode spans
hannahkm 0ad7dd1
wip: span event and span link
hannahkm 326a244
wip: payload
hannahkm ea80c7a
wip: encode traceChunk
hannahkm af26f15
fix payload encodings
hannahkm ded707d
fix traceChunk field types
hannahkm 5124410
broken string table implementation
hannahkm bb1baaf
clean up some things
hannahkm f071e05
streamingKey type for stringTable (oh god)
hannahkm 03abab3
fix some types, also i don't think we need spanlistv1 anymore
hannahkm 22e70ec
fix immediate compiler issues
hannahkm 68ab0d8
few more fixes with payload representations
hannahkm 23c72cf
wip: decoding functions
hannahkm a12502c
wip: decode trace chunk func
hannahkm 08b1b97
couple fixes
hannahkm 60165d3
draft test
hannahkm 11a4ad9
wip with many questions
hannahkm 6d10c7a
some fixes and more todos
hannahkm 46a6cb9
fix(ddtrace/tracer): improving the ergonomics of encodeField and smal…
darccio 170a42c
wip: finish encoding
hannahkm 7d6c3cc
decode??
hannahkm 5881a50
debug some issues
hannahkm dc26c98
fix(ddtrace/tracer): don't encode map header twice
darccio 9030925
fix(ddtrace/tracer): use string table to decode strings
darccio 269988e
fix(ddtrace/tracer): encode uint32 and uint64 field values
darccio 8c7bef3
fix(ddtrace/tracer): remove redundant err checks and return the right…
darccio 8f06c7b
fix(ddtrace/tracer): rename error variable to comply with linter
darccio 80dbd54
fix(ddtrace/tracer): don't use receiver's bitmap when encoding attrib…
darccio b64c68f
early return on fail while encoding, also fix some types
hannahkm 8908891
use string table during encoding and add more int coverage
hannahkm e739a34
never overwrite buffers
hannahkm 3a6e7fa
fix(ddtrace/tracer): cache service as payload attribute; enhance tests
darccio f3f86ab
fix: make span link and event decode consistent with other functions
hannahkm 91c5929
add span links and events to detailed test
hannahkm 58d2f62
v1 protocol revamp and fixes
hannahkm 82c805b
document functions and update api.txt
hannahkm 1392569
Merge remote-tracking branch 'origin' into hannahkm/msgp-payload-inte…
darccio bbb62d2
chore: apply changes from #4010
darccio d226900
Merge branch 'hannahkm/msgp-payload-interface' into hannahkm/implemen…
darccio 72fae1d
chore: go fmt
darccio 7d4c9cf
feat(.github/workflows): add APM_TRACING_EFFICIENT_PAYLOAD scenario f…
darccio a989bde
replace DD_TRACE_AGENT_PROTOCOL_VERSION with DD_TRACE_V1_PAYLOAD_FORM…
hannahkm e2ef0d5
initialize header with 8 bytes
hannahkm 0067018
fix: move init of header size to inside updateHeader
hannahkm 5e1633d
fix: use proper traceURL for v1 protocol
hannahkm 888c82c
fix: encode attributes as a list instead of map
hannahkm c4b126d
update api txt file
hannahkm d931d7e
fix: properly set traceID
hannahkm a8b15f2
fix: use big endian for trace id?
hannahkm 2ab2051
fix: encode both upper and lower traceID bits
hannahkm 092f607
fix: traceID was never getting set
hannahkm 639f9b2
fix: empty payload should also be encoded as a map
hannahkm 581c994
fix: non atomic updates to fields, doc string fixes, etc
hannahkm 0487a5a
fix: initial protocol msg was sending an array
hannahkm 8813fa5
fix: sm was not properly represented as a uint32
hannahkm ff24c1f
fix: change spankind to uint32 instead of a string
hannahkm 50724d8
trigger tests
hannahkm 883e3f2
feat: support process tags on spans
hannahkm bc024ce
chore: improve testing to specifically check for process tags on the …
hannahkm e759d0e
fix: set process tags on attributes instead of on chunks
hannahkm e4ae913
trigger tests
hannahkm da2fd94
test against my system test branch
hannahkm 813031f
revert test
hannahkm 6ad1afe
trigger tests
hannahkm 7fc1f29
Merge branch 'main' into hannahkm/implement-v1-serialization
hannahkm 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
Oops, something went wrong.
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.
Payload v1 is represented by a message pack map, whereas the empty payload in v0.4 was represented by an array. To prevent failures when we send empty data, we need to check for the payload version and send the correct data type.