Skip to content

OpenCensus Trace Exporters.#1

Open
purple4reina wants to merge 3 commits intomasterfrom
opencensus-traces
Open

OpenCensus Trace Exporters.#1
purple4reina wants to merge 3 commits intomasterfrom
opencensus-traces

Conversation

@purple4reina
Copy link
Contributor

A spec for writing Trace (aka span) Exporters.

Open TODOs:

  • What about events on spans?
  • Add Links to Spans spec
  • Add Annotations to Spans spec
  • What about span type? This can be set in OpenCensus.
  • Is there a "404" like status code we should be ignoring?

@CLAassistant
Copy link

CLAassistant commented Sep 10, 2019

CLA assistant check
All committers have signed the CLA.

@purple4reina
Copy link
Contributor Author

Okay, I updated this Pull Request to represent what our team implemented for the OpenCensus go exporter! 🎉

@purple4reina
Copy link
Contributor Author

@rachelleahklein and @jkwatson This is reready for your review 🎈

Copy link
Contributor

@jkwatson jkwatson Sep 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have access to an status message? If so, we should also populate error.message here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh great idea! We didn't do this in our version of the Go OpenCensus exporter but it's a great idea. I'll add it!

Since the Status isn't always an error (say the code is 0) then maybe we shouldn't use the word "error". How about three attributes (all under the attributes map) error (bool), status.code (int), and status.message (string)?

@purple4reina purple4reina requested a review from jkwatson October 1, 2019 21:50
Comment on lines +12 to +15
|`parent.id`|`Span.ParentSpanID`|string|yes (except root span)|The span id of the previous caller of this span. Can be empty if this is the first span in which case the key should be omitted.|
|`timestamp`|`Span.StartTime`|long|yes|Epoch ms timestamp|
|`duration.ms`|`Span.EndTime` - `Span.StartTime`|float|yes|Duration of this span in milliseconds|
|`service.name`|(none)|string|yes| The name of the service that created this span. This value is not gathered from OpenCensus. Instead it should be set directly by the user when defining the Exporter.|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name, parent.id, duration.ms and service.name are all in the attributes rather than the top level. Should that be called out in here?

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.

4 participants

Comments