Commit e13ab16
authored
Remove conflicting attributes from aws-sdk instrumentation (#1294)
## Summary:
We are trying to upgrade to upstream's 2.23.x, but they have changed
[AWS SDK 1.x/2.x attributes to align with semantic
conventions](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v2.22.0),
generally, the changes are acceptable, but observed that in our aws-sdk
instrumentation package, we are duplicating attribute generation for
some of these changed attributes, specifically:
* `aws.bucket.name` -> `aws.s3.bucket`
* `aws.table.name` -> `aws.dynamnodb.table_names`
* `aws.stream.name` -> `aws.kinesis.stream_name`
* `aws.queue.url` -> `aws.sqs.queue_url`
Since we would have to change these fields in the aws-sdk
instrumentation, we are questioning whether we need this attribute
generation logic at all - if we are just duplicating what the upstream
is doing, why do it? Our aws-sdk instrumentation runs IN ADDITION TO,
not IN PLACE OF the upstream, so removing this logic should be a no-op.
## Testing:
* We have [robust contract
tests](https://github.com/aws-observability/aws-otel-java-instrumentation/tree/main/appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/awssdk)
that validate the `aws.*` attributes (see PR approval workflow).
* E2E tests also cover this logic, which are run in
[main-build](https://github.com/aws-observability/aws-otel-java-instrumentation/actions/runs/21257574136).
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.1 parent 3ab4aa2 commit e13ab16
4 files changed
Lines changed: 6 additions & 54 deletions
File tree
- instrumentation/aws-sdk/src
- main/java/software/amazon/opentelemetry/javaagent/instrumentation/awssdk_v2_2
- test/java/software/amazon/opentelemetry/javaagent/instrumentation/awssdk_v2_2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | | - | |
27 | 24 | | |
28 | | - | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
| |||
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
42 | 39 | | |
43 | | - | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
61 | | - | |
| 57 | + | |
62 | 58 | | |
63 | | - | |
| 59 | + | |
64 | 60 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 61 | + | |
68 | 62 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 63 | + | |
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
| |||
Lines changed: 0 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 49 | | |
83 | 50 | | |
84 | 51 | | |
| |||
92 | 59 | | |
93 | 60 | | |
94 | 61 | | |
95 | | - | |
96 | | - | |
97 | 62 | | |
98 | 63 | | |
99 | 64 | | |
100 | 65 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 66 | | |
105 | 67 | | |
106 | 68 | | |
| |||
0 commit comments