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

Span Event should have a timestamp #191

Closed
hekike opened this issue Aug 11, 2019 · 4 comments · Fixed by #195
Closed

Span Event should have a timestamp #191

hekike opened this issue Aug 11, 2019 · 4 comments · Fixed by #195

Comments

@hekike
Copy link
Member

hekike commented Aug 11, 2019

@hekike hekike added the bug Something isn't working label Aug 11, 2019
@hekike hekike mentioned this issue Aug 11, 2019
@mayurkale22 mayurkale22 added feature-request and removed bug Something isn't working labels Aug 12, 2019
@mayurkale22
Copy link
Member

We already have an interface called TimedEvent, which represents a timed event. https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-types/src/trace/TimedEvent.ts#L23

@rochdev
Copy link
Member

rochdev commented Aug 13, 2019

I think the idea is to merge both. The spec doesn't mention having 2 classes, and returning an Event from addEvent with a timestamp on it makes a lot more sense since it cannot happen that an event didn't occur at a specific point in time.

@danielkhan
Copy link
Contributor

@rochdev timedEvent comes from here: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-tracing.md#gettimedevents

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

Return the collection of Events with the timestamps associated with this SpanData

rather confusing.

@rochdev
Copy link
Member

rochdev commented Aug 19, 2019

If addEvents adds an Event with a timestamp, and getTimedEvents returns these Event types, then it matches exactly the specification.

pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants