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

feat: add ConsoleSpanExporter #300

Merged
merged 3 commits into from Sep 24, 2019

Conversation

mayurkale22
Copy link
Member

Which problem is this PR solving?

Short description of the changes

  • This class can be used for diagnostic purposes.

Copy link
Member

@OlivierAlbertini OlivierAlbertini left a comment

Choose a reason for hiding this comment

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

Perhaps we could create an issue in order to discuss if having a hierarchy between spans that have the same traceid and traceid/parentSpanId would help to diagnose possible issues. WDYT?

@mayurkale22
Copy link
Member Author

Perhaps we could create an issue in order to discuss if having a hierarchy between spans that have the same traceid and traceid/parentSpanId would help to diagnose possible issues. WDYT?

I don't expect users to use ConsoleExporter in the production system. I think creating a hierarchy in the console would be a little tricky job and not sure whether it is worst to spend time on that. WDYT?

): void {
for (const span of spans) {
console.log(
`{name=${span.name}, traceId=${span.spanContext.traceId}, spanId=${
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to use the .toString function on Span?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is actually ReadableSpan interface. I am not sure how to add methods on the interface

@bg451 bg451 merged commit a0140ec into open-telemetry:master Sep 24, 2019
lukaswelinder pushed a commit to agile-pm/opentelemetry-js that referenced this pull request Jul 24, 2020
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
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.

Implement console exporter
6 participants