Skip to content

OpenTelemetry specs vs tracing crate #21

Answered by hawkw
sebastiendan asked this question in Q&A
Discussion options

You must be logged in to vote

The main diff I can see is the meaning of the "event" term:

  • OpenTelemeytry spec and official instrumentation libs: An event is a custom log line/entry manually attached to a span

  • tracing (and so tracing-opentelemetry): An event is equivalent to a span

What do you mean exactly by "an event is equivalent to a span"? An "event" in tracing is a collection of data recorded at a moment in time, like a structured log entry. Events occur within the context of a span. This is typically the current span when the event is recorded unless the user explicitly overrides it.

One practical implication of this: In tracing, there's a log filter we can set on a span so that all application log entr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sebastiendan
Comment options

@davidbarsky
Comment options

@hawkw
Comment options

Answer selected by sebastiendan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #19 on May 17, 2023 16:35.