Repository navigation
[SDK] Tracer::StartSpan benchmark and optimizations #4248
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 all commits
27c18fd
9746077
e472646
2192679
f3f6d01
84cab3c
9caf280
b0140b2
38a0f60
4bde64c
f0e6367
a815cbd
4ae94f0
067c2b3
ddb176b
2852840
3c6e1d0
2e42634
251128e
02d6394
b208179
be14848
f59e75e
d81e095
f7aa4c0
dcaf7fc
d8c6f7d
b8a4b1d
b2e37e2
bc60888
c803b4f
eaa977f
6c5bccc
c490528
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 |
|---|---|---|
|
|
@@ -59,7 +59,7 @@ struct StartSpanOptions | |
| // - If the `parent` field is not set, the newly created Span will inherit the | ||
| // parent of the currently active Span (if any) in the current context. | ||
| // | ||
| nostd::variant<SpanContext, context::Context> parent = SpanContext::GetInvalid(); | ||
| nostd::variant<SpanContext, context::Context> parent = context::Context{}; | ||
|
Member
Author
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. For most callers the value of parent is never changed. For callers that set a parent the initial value is often default constructed then replaced. To keep this change ABI safe we don't add a |
||
|
|
||
| // TODO: | ||
| // SpanContext remote_parent; | ||
|
|
||
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.
removed
context.HasKeycall since it just callscontext.GetValue(key)and checks for thenostd::monostate. The span key lookup and context value copy can be done once.