-
Notifications
You must be signed in to change notification settings - Fork 727
Fix to run the Auto instrumentation example in the docs #1435
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
Changes from 6 commits
c8580b2
207502b
144e85c
18f3375
5db7f6c
ffb7ae3
f60c0be
7af07ba
8039aeb
374bec9
88926f5
acd9ad1
698b6fb
6063a13
a85f9f1
6c47b67
aa41b03
3b0e945
715c08e
2ed540e
6619a37
62d7ed0
9482378
6496413
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -373,6 +373,7 @@ def __init__( | |
out: typing.IO = sys.stdout, | ||
formatter: typing.Callable[[Span], str] = lambda span: span.to_json() | ||
+ os.linesep, | ||
**kwargs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change will be required else the code in init_tracing method
fails with error "unexpected argument" service name. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. got it! thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thank you! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we only add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could add a default parameter service_name=None. I thought of adding **kwargs because in future if additional parameters get passed, we might have to come back and change again. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. **kwargs is more robust but this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lzchen ok got it. Will make the changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lzchen - The tests seems to fail with an error "GitHub Actions has encountered an internal error when running your job. |
||
): | ||
self.out = out | ||
self.formatter = formatter | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails when testing locally, with the following error:
Currently, there's no
ConsoleSpanExporter
import inopentelemetry/sdk/trace/__init__.py
, so the line should be changed to:This is not required for the metrics one, as
ConsoleMetricsExporter
exists inopentelemetry/sdk/metrics/__init__.py
, but could be changed too, to avoid issues in the future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the issue exists for ConsoleMetricsExporter as well so that would also have to be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes have been made. @lzchen could you please review and let me know your thoughts?