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

Tracing examples #286

Closed
wants to merge 3 commits into from
Closed

Tracing examples #286

wants to merge 3 commits into from

Conversation

rhcarvalho
Copy link
Contributor

This builds upon #285 and contains some examples of how to use the new tracing APIs.

In practice, the relationship is the inverse. The examples were written first, before any implementation existed, as a way to inform and guide the new APIs exposed by the SDK.

As is the case with the implementation in #285, this is still a WIP draft.

1. Rename Event.StartTimestamp, Span.StartTimestamp and
Span.EndTimestamp to remove the "stamp" suffix in preparation to use
StartTime and EndTime for spans when full tracing support is added.

Preferring the shorter name because it is shorter and
equally clear, and the type is time.Time.

2. Rename Span to RawSpan.

Freeing up the name for the full tracing implementation where Span is an
abstraction instead of the wire format.

While this is theoretically a breaking change, it is one that should not
affect users, as those names were only used internally by the Sentry
OpenTelemetry Exporter (we can update it) and are marked as experimental
APIs.
@tty2 tty2 mentioned this pull request Oct 28, 2020
@HazAT HazAT changed the base branch from master to tracing November 5, 2020 14:40
@rhcarvalho rhcarvalho linked an issue Nov 23, 2020 that may be closed by this pull request
@rhcarvalho
Copy link
Contributor Author

Decided to merge the initial examples with #285 so it's all in the same place. We may add more examples later, in which case we'll use new PRs.

@rhcarvalho rhcarvalho closed this Dec 1, 2020
@kamilogorek kamilogorek deleted the tracing-examples branch October 4, 2022 11:48
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.

Sentry metrics
1 participant