Commit a4e59e5
Upgrade to OTel v2.23.0 and Contrib v1.52.0 (#1292)
### Background
As part of the upgrade, we need to ensure our patches still apply
appropriately to the code of the new versions. This PR serves to upgrade
the version numbers of open-telemetry/opentelemetry-java-instrumentation
and open-telemetry/opentelemetry-java-contrib.
This will also speed up build times, as the
open-telemetry/opentelemetry-java-instrumentation patch has been removed
again.
### Process
For both repos:
1. Check out current revision of repo
2. Apply patch file to it and commit, generating commit X
3. Check out the new version of the repo we want to upgrade to
4. `git cherry-pick X`
5. Handle cherry pick conflicts
### Testing
PR build passes, once merged will verify that main-build also passes
Main build from this branch:
https://github.com/aws-observability/aws-otel-java-instrumentation/actions/runs/21277061991
### AWS SDK Instrumentation changes
https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v2.22.0
released the following AWS SDK V1/V2 changes:
AWS SDK V1:
- The following attributes have been renamed and are now emitted by
default (no experimental flag required):
- aws.bucket.name (S3) → aws.s3.bucket
- aws.queue.url (SQS) → aws.sqs.queue.url
- aws.stream.name (Kinesis) → aws.kinesis.stream_name
- aws.table.name (DynamoDB) → aws.dynamodb.table_names
AWS SDK V2:
- The following attributes have been renamed:
- aws.bucket.name (S3) → aws.s3.bucket
- aws.queue.url (SQS) → aws.sqs.queue.url
- aws.stream.name (Kinesis) → aws.kinesis.stream_name
- aws.table.name (DynamoDB) → aws.dynamodb.table_names
- The following attribute types have changed:
- aws.dynamodb.table_names: string → string[]
- The following attributes are no longer emitted by default but can be
enabled with
otel.instrumentation.aws-sdk.experimental-span-attributes=true:
- aws.queue.name (SQS)
- aws.lambda.function.name (Lambda)
- aws.lambda.function.arn (Lambda)
We DO specify
`otel.instrumentation.aws-sdk.experimental-span-attributes=true`, so
this is not a concern, but for all the renames, etc, we had to make some
changes. Nothing critical was identified, this should be a no-op from
customer perspective.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
---------
Co-authored-by: Thomas Pierce <thp@amazon.com>1 parent 2244f92 commit a4e59e5
14 files changed
Lines changed: 265 additions & 3621 deletions
File tree
- .github/patches
- appsignals-tests/contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test
- awssdk
- base
- v1
- utils
- awsagentprovider/src
- main/java/software/amazon/opentelemetry/javaagent/providers
- test/java/software/amazon/opentelemetry/javaagent/providers
- dependencyManagement
- lambda-layer
- patches
Large diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
Lines changed: 39 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
242 | 260 | | |
243 | 261 | | |
244 | 262 | | |
| |||
714 | 732 | | |
715 | 733 | | |
716 | 734 | | |
717 | | - | |
| 735 | + | |
718 | 736 | | |
719 | 737 | | |
720 | 738 | | |
| |||
794 | 812 | | |
795 | 813 | | |
796 | 814 | | |
797 | | - | |
| 815 | + | |
798 | 816 | | |
799 | 817 | | |
800 | 818 | | |
| |||
873 | 891 | | |
874 | 892 | | |
875 | 893 | | |
876 | | - | |
| 894 | + | |
877 | 895 | | |
878 | 896 | | |
879 | 897 | | |
| |||
952 | 970 | | |
953 | 971 | | |
954 | 972 | | |
955 | | - | |
| 973 | + | |
956 | 974 | | |
957 | 975 | | |
958 | 976 | | |
| |||
1031 | 1049 | | |
1032 | 1050 | | |
1033 | 1051 | | |
1034 | | - | |
| 1052 | + | |
1035 | 1053 | | |
1036 | 1054 | | |
1037 | 1055 | | |
| |||
1079 | 1097 | | |
1080 | 1098 | | |
1081 | 1099 | | |
1082 | | - | |
| 1100 | + | |
| 1101 | + | |
1083 | 1102 | | |
1084 | 1103 | | |
1085 | 1104 | | |
| |||
1603 | 1622 | | |
1604 | 1623 | | |
1605 | 1624 | | |
1606 | | - | |
| 1625 | + | |
| 1626 | + | |
1607 | 1627 | | |
1608 | 1628 | | |
1609 | 1629 | | |
| |||
1649 | 1669 | | |
1650 | 1670 | | |
1651 | 1671 | | |
1652 | | - | |
| 1672 | + | |
1653 | 1673 | | |
1654 | 1674 | | |
1655 | 1675 | | |
| |||
1749 | 1769 | | |
1750 | 1770 | | |
1751 | 1771 | | |
1752 | | - | |
| 1772 | + | |
| 1773 | + | |
1753 | 1774 | | |
1754 | 1775 | | |
1755 | 1776 | | |
| |||
1830 | 1851 | | |
1831 | 1852 | | |
1832 | 1853 | | |
1833 | | - | |
| 1854 | + | |
| 1855 | + | |
1834 | 1856 | | |
1835 | 1857 | | |
1836 | 1858 | | |
| |||
1909 | 1931 | | |
1910 | 1932 | | |
1911 | 1933 | | |
1912 | | - | |
| 1934 | + | |
| 1935 | + | |
1913 | 1936 | | |
1914 | 1937 | | |
1915 | 1938 | | |
| |||
2073 | 2096 | | |
2074 | 2097 | | |
2075 | 2098 | | |
2076 | | - | |
| 2099 | + | |
| 2100 | + | |
2077 | 2101 | | |
2078 | 2102 | | |
2079 | 2103 | | |
| |||
2152 | 2176 | | |
2153 | 2177 | | |
2154 | 2178 | | |
2155 | | - | |
| 2179 | + | |
| 2180 | + | |
2156 | 2181 | | |
2157 | 2182 | | |
2158 | 2183 | | |
| |||
4005 | 4030 | | |
4006 | 4031 | | |
4007 | 4032 | | |
4008 | | - | |
| 4033 | + | |
4009 | 4034 | | |
4010 | 4035 | | |
4011 | 4036 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
114 | | - | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
| 118 | + | |
117 | 119 | | |
118 | | - | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments