Commit faf49eb
fix: added support for Opentelemetry 0.18 (#1234)
* fix: added support for Opentelemetry 0.18
Introduces support for Opentelemetry 0.18 API which implements the
Tracing 1.0 specification.
* style: remove unused import declaration
* refactor: removed the `OpenTelemetryTracer`-class and just expose createSpan as function
* test: updated the span related tests
* test: updated the tests
* test: updated the tests
* refactor: move the tracer out of the `createSpan`-function
Small refactor to ensure no new tracer gets created for each call to the
`createSpan`-functio by initiating the `libraryTracer`-variable
* fix: get the unit test for publisher opentelemetry working again
* test: fix the subscriber unit tests for opentelemetry
* chore: remove describe.only
* chore: latest changes
* test: updated the tests
* test: improve the tests
* chore: maybe its need to be Google LLC?
* feat: add messaging attributes to otel spans
* fix: include package.json version as instrumentation version
* docs: update the opentelemetry example code
* style: remove unused code
* fix: remove peer name for now
* style: improve explanation regarding otel trace provider
* chore: update the opentelemetry versios in the samples `package.json`
* test: remove extranous logging in the opentelemetry example app
* test: remove the check for `traceId` that doesn't get outputted
* fix: remove unnecessary messaging span attribute and added comments
* style: use shiny new syntax for undefined check in `subscriber`-class
* fix: match the span name with the operation kind in `subscriber`-class
* chore: improved code based on PR feedback
* fix:
BREAKING CHANGE:
The Opentelemetry tracing span doesn't expose the `data`-attribute anymore
to avoid accidentally exposing privacy/personal data
* fix: only include `googclient_OpenTelemetrySpanContext`-attribute
when valid span context exists
* fix: change the way `package.json` is being imported
* fix: revert bad merge that removed tracing on devDependencies
At least I think that's what happened...
* style: remove unnecessary comment
* style: remove unused imports
* build: downgrade @sinonjs/fake-timers to v6
The v10 of sinonjs comes with v7 of fake-timers which comes with
typescript type definitions that are generated by jsdoc comments which
seems to cause trouble when compiling the app it.
Downgrading to v6 to avoid needing to solve this problem now.
* style: cleanup type definition
Removed the `| undefined` for the `span` in the `Publisher`-class
Co-authored-by: Aaron Abbott <[email protected]>
* build: remove `package.json` after compilation step
* build: put back package.json in the build
* build: explicitly add package.json to the npm pack build
* fix: revert "fix: change the way `package.json` is being imported"
This reverts commit 0c2c76f8efa66e5f66d97430964fd30ac7e19261.
* fix: revert "build: explicitly add package.json to the npm pack build"
This reverts commit 14de6257bf63acc6168c4b51c18088a5c74e673b.
Co-authored-by: Weyert de Boer <[email protected]>
Co-authored-by: Megan Potter <[email protected]>
Co-authored-by: Megan Potter <[email protected]>
Co-authored-by: Aaron Abbott <[email protected]>1 parent a6a1066 commit faf49eb
3 files changed
Lines changed: 26 additions & 8 deletions
File tree
- handwritten/pubsub/samples
- system-test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | | - | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
92 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
97 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
98 | 113 | | |
99 | 114 | | |
100 | 115 | | |
101 | | - | |
102 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
103 | 122 | | |
104 | 123 | | |
105 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
0 commit comments