-
Notifications
You must be signed in to change notification settings - Fork 644
Closed
Labels
A-logArea: Issues related to logsArea: Issues related to logsA-metricsArea: issues related to metricsArea: issues related to metricsA-traceArea: issues related to tracingArea: issues related to tracingtriage:acceptedHas been triaged and accepted.Has been triaged and accepted.
Description
sdk::trace::Span::ensure_ended_and_exported clones the provider's config resource for every span processor and every span before sending it to the span processor.
But since the resource is unique to the provider which owns all the span processors, this data could be sent ahead of time, just once, to each span processor.
Not only would this reduce CPU consumption by not cloning, but it will also reduce the size of each message sent through a span processor channel by about 64 bytes (estimated) which will save CPU all by itself.
(I can work on a PR for this but wanted to hear of any objections here before starting that work.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-logArea: Issues related to logsArea: Issues related to logsA-metricsArea: issues related to metricsArea: issues related to metricsA-traceArea: issues related to tracingArea: issues related to tracingtriage:acceptedHas been triaged and accepted.Has been triaged and accepted.