[Instrumentation.AWS] Update the instrumentation logic to use AWS TracerProvider.#1974
Conversation
|
@muhammad-othman, please sign EasyCLA. Without this we are not allowed to proceed with the PR. |
3f26607 to
6f9c968
Compare
@normj I believe they were added them preemptively before they were added to the specs, however now we have rpc.method and rpc.service to replace The only attribute that I removed is |
I missed that the service and operation were moved to OTel specific attributes. Region probably doesn't make sense at the OTel spec level since that is more of an AWS attribute. We should discuss with the rest of the SDK if we should add an |
| private void ValidateDynamoActivityTags(Activity ddb_activity) | ||
| { | ||
| Assert.Equal("DynamoDB.Scan", ddb_activity.DisplayName); | ||
| Assert.Equal("DynamoDB", Utils.GetTagValue(ddb_activity, "aws.service")); |
There was a problem hiding this comment.
Instead of removing these checks for aws.service and aws.operation shouldn't they updated to check rpc.service and rpc.method?
| private void ValidateSqsActivityTags(Activity sqs_activity) | ||
| { | ||
| Assert.Equal("SQS.SendMessage", sqs_activity.DisplayName); | ||
| Assert.Equal("SQS", Utils.GetTagValue(sqs_activity, "aws.service")); |
There was a problem hiding this comment.
Instead of removing these checks for aws.service and aws.operation shouldn't they updated to check rpc.service and rpc.method?
|
@srprash Could you review? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1974 +/- ##
==========================================
+ Coverage 73.91% 75.77% +1.85%
==========================================
Files 267 20 -247
Lines 9615 227 -9388
==========================================
- Hits 7107 172 -6935
+ Misses 2508 55 -2453
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
|
||
| namespace OpenTelemetry.Instrumentation.AWS.Implementation.Tracing; | ||
|
|
||
| internal class AWSTraceSpan : TraceSpan |
There was a problem hiding this comment.
Make AWSTraceSpan, AWSTracer and AWSTracerProvider sealed to aid with JIT optimisations?
There was a problem hiding this comment.
Updated them and updated the metrics classes too.
afc86ad to
2cf1ec6
Compare
|
|
|
@birojnayak Unfortunately Since that we're still in beta, I believe it's better to remove |
|
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
|
Hi @cijothomas, |
|
There is a CI failure: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/actions/runs/10498004987/job/29082060927?pr=1974 Could you check and fix? I can merge once CI is passing. |
|
Thank you @cijothomas for the quick response. |
|
@vishweshbankwar Need your help. One of the merge requirement is not met, maybe a CI is missing? I am not able to tell quickly.. |
|
@cijothomas I think it needs code owner approver first, someone from |






Changes
This PR focuses on leveraging the newly introduced tracing APIs within the AWS SDK. The main changes include:
Integration of New Tracing APIs:
Implemented the new AWS SDK tracing APIs and updated the
AddAWSInstrumentationmethod to register this implementation usingAWSTracerProvider.Simplification of Tracing Logic:
Removed
AWSTracingPipelineHandlerand migrated its logic to either the .NET SDK orAWSPropagatorPipelineHandler.SDK Version Update:
Updated the SDK version to
3.7.400to incorporate the new tracing APIs.Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial changes