-
Notifications
You must be signed in to change notification settings - Fork 862
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
Create tracing spans to cover the SDK operations #3352
Create tracing spans to cover the SDK operations #3352
Conversation
} | ||
finally | ||
{ | ||
executionContext.RequestContext.Metrics.StopEvent(Metric.ClientExecuteTime); | ||
this.LogMetrics(executionContext); | ||
span.Dispose(); | ||
} | ||
} | ||
|
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 intentionally left out adding traces for AWS_APM_API (.NET Framework 3.5)
because we plan to remove it in v4 and including it would introduce unnecessary complexity to store the spans and retrieve them in the InvokeCallback, which will not be needed in the newer versions.
Additionally, none of our customers will benefit from it as OTel is not supported for .NET Framework versions older than 4.6.2.
/// <param name="spanKind">Optional type of span to create.</param> | ||
/// <param name="parentContext">Optional parent context for the span.</param> | ||
/// <returns>A <see cref="TraceSpan"/> instance representing the created span.</returns> | ||
public static TraceSpan CreateSpanHelper( |
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.
Adding the Helper
suffix is redundant because you are in a class of utilities. It also makes me think it returns back an object that has helper methods for creating spans. I would remove the Helper
suffix.
7701da6
to
8569b06
Compare
c614f0b
into
DOTNET-7462-Observability-for-the-NET-SDK
Description
Created new tracing spans in the following places:
Motivation and Context
https://sim.amazon.com/issues/DOTNET-7519
Testing
Created a hacked OTel provider, ran same requests and checked the output in the console and visualized these traces in observability tools, here are some examples:
Full tracing timeline
PutObject attributes:
GetObject attributes:
DynamoDB.UpdateItem
DynamoDB.DescribeTableRequest with exception attributes:
Screenshots (if appropriate)
Types of changes
Checklist
License