Commit cafd67f
chore(deps)!: upgrade to otel v2.0.0 (#791)
* chore(deps): upgrade to otel v2.0.0
this is a breaking change
closes #790
* Update packages/opentelemetry-resource-util/package.json
Co-authored-by: Aaron Abbott <[email protected]>
* chore(ci): remove Node.js 14 from CI matrix
fix(pkg): rename exporter packages to align with ownership
feat(node): update required Node.js version to 16
refactor(tracing): remove unused Tracer import and update resource detection method
feat(ci): add support for upgrading to OpenTelemetry v2 branch
style(tracing): adjust formatting for better readability in configurations
feat(ci): modify branch triggers for CI workflow
chore(revert)
feat(resource): improve resource detection by refactoring to use detectResources
* Fix changes that were made to instrument snapshot tests
* remove commented lines
* remove OT_VERSION from user agent strings since there is no public API to get it
Adding it at build time won't work since the peerDependency may be a different version at runtime.
Some possible alternatives:
- read it defensively from "@opentelemetry/core/build/src/version.ts"
even though it's not exported from index and may disappear
- try to read it from package.json which may fail with bundling and is
clunky
* Revert "remove OT_VERSION from user agent strings since there is no public API to get it"
This reverts commit ca1b573.
* Try to lazily get version from package.json or fallback to "unknown"
* Make sure that ATTRIBUTE_NAMES statically contains all possible keys
* simplify detector.test.ts
* fix instrumentation quickstart
* Restore the original dep versions for @opentelemetry/semantic-conventions
* remove some unused code
BREAKING CHANGE: drops compatibility with OpenTelemetry SDK 1.0 which changes some types and may require some updates. For more information on the changes and migrating to 2.x, see https://github.com/open-telemetry/opentelemetry-js/blob/v2.0.1/doc/upgrade-to-2.x.md.
---------
Co-authored-by: LeoY <[email protected]>
Co-authored-by: Aaron Abbott <[email protected]>
Co-authored-by: ms-ph <[email protected]>
Co-authored-by: Aaron Abbott <[email protected]>1 parent 86e4edf commit cafd67f
File tree
37 files changed
+13273
-11703
lines changed- e2e-test-server
- src
- packages
- opentelemetry-cloud-monitoring-exporter
- __snapshots__
- src
- test
- opentelemetry-cloud-trace-exporter
- src
- test
- opentelemetry-cloud-trace-propagator
- src
- opentelemetry-resource-util
- src
- detector
- test
- detector
- samples
- instrumentation-quickstart
- src
- metrics
- otlpmetricexport
- src
- otlptraceexport
- trace
- scripts
37 files changed
+13273
-11703
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | 23 | | |
26 | | - | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | | - | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
| |||
121 | 117 | | |
122 | 118 | | |
123 | 119 | | |
124 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
0 commit comments