-
Notifications
You must be signed in to change notification settings - Fork 837
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
Span Event should have a timestamp #191
Comments
We already have an interface called |
I think the idea is to merge both. The spec doesn't mention having 2 classes, and returning an |
@rochdev But looking at this https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-tracing.md#add-events it looks as if the time is also specified on a regular event. Looking at this, I find the sentence
rather confusing. |
If |
Events should have a
timestamp
:https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-types/src/trace/Event.ts
and
span.addEvent(..)
should set it:https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-basic-tracer/src/Span.ts#L80
Related spec:
https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-tracing.md#add-events
The text was updated successfully, but these errors were encountered: