-
Notifications
You must be signed in to change notification settings - Fork 16
feat(bottlecap): add runtime tag
#464
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
Conversation
|
|
||
| if let Some(runtime) = &self.runtime { | ||
| self.span | ||
| .meta | ||
| .insert(String::from("runtime"), runtime.to_string()); | ||
| } |
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.
Not sure if we actually need this, it looks like previous versions have the runtime tag in spans, but not sure if this is done in backend or tracer.
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.
We do need it
|
|
||
| // Resolve runtime only once | ||
| let runtime = resolve_runtime_from_proc(PROC_PATH, ETC_PATH); | ||
| self.enhanced_metrics.set_runtime_tag(&runtime); |
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 is definitely needed tho
bottlecap/src/tags/lambda/tags.rs
Outdated
| tags_map | ||
| } | ||
|
|
||
| #[allow(dead_code)] // keeping this logic for when async runtime resolution will be supported |
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.
we can remove this now, 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.
yeah
What?
Adds the
runtimetag to the invocation span and metric tags.