-
Notifications
You must be signed in to change notification settings - Fork 347
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
Add OpenTelemetry layer as optional #898
Conversation
Signed-off-by: David Calavera <david.calavera@gmail.com>
// Enter the span before calling the inner service | ||
// to ensure that it's assigned as parent of the inner spans. | ||
let _guard = span.enter(); |
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 didn't know that using .instrument(span)
was not enough when calling a future (or maybe it's only useful in a "inner service" context?), where did you find docs about that?
And since the span is entered before starting to poll the future, it will increase the span duration, right?
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.
See this PR: #896
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.
line 67
:
{ traceconv::FAAS_TRIGGER } = "http",
I think it should be configurable because the lambda_runtime
crate can be used without using HTTP triggers (it could defaults to http
when using the lambda_http
crate though)
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.
that sounds like a good idea. Feel free to open a PR with improvements
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.
👍 ➡️ #903
Issue #, if available:
Closes #866
Description of changes:
By submitting this pull request