-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tracing to events package, deprecate TraceID/SpanID (#123)
This PR adds tracing using a new field, TraceContext, in ChangeMessage and EventMessage. While we could stick with TraceID and SpanID (and those fields still exist in the message and will be marshaled/unmarshaled), there are other OpenTelemetry features like the Baggage API and W3C traceparent/tracestate values that we can leverage using TraceContext instead. Moving to this allows for a tighter integration with OpenTelemetry's Go SDK as well and makes it easier for other services using the events package to add observability to their event systems. --------- Signed-off-by: John Schaeffer <[email protected]>
- Loading branch information
1 parent
7f209fd
commit 49f17be
Showing
5 changed files
with
173 additions
and
3 deletions.
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
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