Skip to content

Commit 28343ea

Browse files
authored
Merge branch 'main' into dup-browser-detector
2 parents e75e40c + afcc711 commit 28343ea

File tree

101 files changed

+35981
-23331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+35981
-23331
lines changed

.github/workflows/docs.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Deploy API Documentation
22

3-
on:
4-
release:
5-
types: [published]
3+
# Disable API doc updates from "main" while "main" is frozen for https://github.com/open-telemetry/opentelemetry-js/milestone/17
4+
# TODO: renable this once ready for releases from "main" again.
5+
# on:
6+
# release:
7+
# types: [published]
8+
on: []
69

710
jobs:
811
build-and-deploy:

.github/workflows/unit-test.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- "20.6.0"
1818
- "20"
1919
- "22"
20+
- "23"
2021
runs-on: ubuntu-latest
2122
env:
2223
NPM_CONFIG_UNSAFE_PERM: true
@@ -43,7 +44,8 @@ jobs:
4344
- run: npm install -g npm@latest
4445
if: ${{
4546
matrix.node_version == '20' ||
46-
matrix.node_version == '22'
47+
matrix.node_version == '22' ||
48+
matrix.node_version == '23'
4749
}}
4850

4951
- name: Bootstrap
@@ -52,8 +54,15 @@ jobs:
5254
- name: Build 🔧
5355
run: npm run compile
5456

55-
- name: Unit tests
56-
run: npm run test
57+
- run: npm test
58+
if: ${{ matrix.node_version != '23' }}
59+
# Node.js 23 type stripping conflicts with mocha usage of ts-node.
60+
# See https://github.com/open-telemetry/opentelemetry-js/issues/5415
61+
- run: npm test
62+
env:
63+
NODE_OPTIONS: '--no-experimental-strip-types'
64+
if: ${{ matrix.node_version == '23' }}
65+
5766
- name: Report Coverage
5867
uses: codecov/codecov-action@v5
5968
env:

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,31 @@ For semantic convention package changes, see the [semconv CHANGELOG](packages/se
8181
* feat(core)!: remove TracesSamplerValues from exports [#5406](https://github.com/open-telemetry/opentelemetry-js/pull/5406) @pichlermarc
8282
* (user-facing): TracesSamplerValues was only consumed internally and has been removed from exports without replacement
8383
* chore(resources)!: Remove deprecated duplicate browser detector from `@opentelemetry/resource` in favor of `@opentelemetry/opentelemetry-browser-detector` [#5420](https://github.com/open-telemetry/opentelemetry-js/pull/5420)
84+
* feat(core)!: remove unused and obsolete functions and types [#5444](https://github.com/open-telemetry/opentelemetry-js/pull/5444) @pichlermarc
85+
* (user-facing): `VERSION` was an internal constant that was unintentionally exported. It has been removed without replacement.
86+
* (user-facing): `isWrapped` has been removed in favor of `isWrapped` from `@opentelemetry/instrumentation`
87+
* (user-facing): `ShimWrapped` has been removed in favor of `ShimWrapped` from `@opentelemetry/instrumentation`
88+
* (user-facing): `hexToBase64` was a utility function that is not used by the SDK anymore. It has been removed without replacement.
89+
* (user-facing): `hexToBinary` was a utility function that now internal to `@opentelemetry/otlp-tranformer`. It has been removed without replacement.
90+
* (user-facing): `baggageUtils.getKeyParis` was an internal utility function that was unintentionally exported. It has been removed without replacement.
91+
* (user-facing): `baggageUtils.serializeKeyPairs` was an internal utility function that was unintentionally exported. It has been removed without replacement.
92+
* (user-facing): `baggageUtils.parseKeyPairsIntoRecord,` has been removed in favor of `parseKeyPairsIntoRecord`
93+
* (user-facing): `baggageUtils.parsePairKeyValue` was an internal utility function that was unintentionally exported. It has been removed without replacement.
94+
* (user-facing): `TimeOriginLegacy` has been removed without replacement.
95+
* (user-facing): `isAttributeKey` was an internal utility function that was unintentionally exported. It has been removed without replacement.
8496

8597
### :rocket: (Enhancement)
8698

8799
* feat(sdk-trace-web): do not throw when passing extra options [#5357](https://github.com/open-telemetry/opentelemetry-js/pull/5357) @pichlermarc
88100
* `WebTracerProvider` constructor now does not throw anymore when `contextManager` or `propagator` are passed as extra options to the constructor
89101
* feat(sdk-trace-base): add stack trace warning to debug instrumentation [#5363](https://github.com/open-telemetry/opentelemetry-js/pull/5363) @neilfordyce
102+
* feat(core): add more scalable replacements for getEnv(), getEnvWithoutDefaults() [#5443](https://github.com/open-telemetry/opentelemetry-js/pull/5443) @pichlermarc
90103

91104
### :bug: (Bug Fix)
92105

93106
* fix(exporter-zipkin): remove usages of deprecated `url.parse` from `node:url` [#5390](https://github.com/open-telemetry/opentelemetry-js/pull/5390) @chancancode
94107
* fix(sdk-metrics): do not export from `PeriodicExportingMetricReader` when there are no metrics to export. [#5288](https://github.com/open-telemetry/opentelemetry-js/pull/5288) @jacksonweber
108+
* fix(sdk-trace-base): always wait on pending export in SimpleSpanProcessor. [#5303](https://github.com/open-telemetry/opentelemetry-js/pull/5303) @anuraaga
95109

96110
### :books: (Refine Doc)
97111

@@ -105,6 +119,7 @@ For semantic convention package changes, see the [semconv CHANGELOG](packages/se
105119
* chore(selenium-tests): remove internal selenium-tests/ package, it wasn't being used @trentm
106120
* chore: update typescript `module` compiler option to `node16`. [#5347](https://github.com/open-telemetry/opentelemetry-js/pull/5347) @david-luna
107121
* feat(opentelemetry-instrumentation): replace `semver` package with internal semantic versioning check implementation to get rid of `semver` package initialization overhead especially in the AWS Lambda environment during coldstart [#5305](https://github.com/open-telemetry/opentelemetry-js/pull/5305) @serkan-ozal
122+
* chore: unpin `@opentelemetry/semantic-conventions` dep to allow better de-duplication in installs [#5439](https://github.com/open-telemetry/opentelemetry-js/pull/5439) @trentm
108123

109124
## 1.30.0
110125

README.md

+34-7
Original file line numberDiff line numberDiff line change
@@ -239,27 +239,54 @@ We have a weekly SIG meeting! See the [community page](https://github.com/open-t
239239
- [Marc Pichler](https://github.com/pichlermarc), Dynatrace
240240
- [Trent Mick](https://github.com/trentm), Elastic
241241

242-
*Find more about the maintainer role in the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#maintainer).*
242+
*Find more about the maintainer role in the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#maintainer).*
243243

244244
#### Approvers ([@open-telemetry/javascript-approvers](https://github.com/orgs/open-telemetry/teams/javascript-approvers))
245245

246246
- [David Luna](https://github.com/david-luna), Elastic
247247
- [Hector Hernandez](https://github.com/hectorhdzg), Microsoft
248248
- [Martin Kuba](https://github.com/martinkuba), Lightstep
249+
- [Marylia Gutierrez](https://github.com/maryliag), Grafana Labs
249250
- [Matthew Wear](https://github.com/mwear), LightStep
250251
- [Naseem K. Ullah](https://github.com/naseemkullah), Transit
251252
- [Neville Wylie](https://github.com/MSNev), Microsoft
252253
- [Purvi Kanal](https://github.com/pkanal), Honeycomb
253254
- [Svetlana Brennan](https://github.com/svetlanabrennan), New Relic
254-
- [Marylia Gutierrez](https://github.com/maryliag), Grafana Labs
255255

256-
*Find more about the approver role in the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#approver).*
256+
*Find more about the approver role in the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#approver).*
257+
258+
#### Triagers ([@open-telemetry/javascript-triagers](https://github.com/orgs/open-telemetry/teams/javascript-triagers))
259+
260+
Members of this team have triager permissions for opentelemetry-js.git and opentelemetry-js-contrib.git.
261+
262+
- (none currently)
263+
264+
*Find more about the triager role in the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#triager).*
265+
266+
#### Contrib Triagers ([@open-telemetry/javascript-contrib-triagers](https://github.com/orgs/open-telemetry/teams/javascript-contrib-triagers))
257267

258-
#### Triager ([@open-telemetry/javascript-triagers](https://github.com/orgs/open-telemetry/teams/javascript-triagers))
268+
Members of this team have triager permissions for opentelemetry-js-contrib.git.
269+
Typically, members of this are [component owners](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/.github/component_owners.yml) of one or more packages in the contrib repo.
259270

260-
- N/A
271+
- [Aaron Abbott](https://github.com/aabmass), Google
272+
- [Abhinav Mathur](https://github.com/abhee11), AppDynamics
273+
- [Bartlomiej Obecny](https://github.com/obecny)
274+
- [Daniel Li](https://github.com/d4nyll)
275+
- [Florencia Acosta](https://github.com/facostaembrace), Embrace
276+
- [Jackson Weber](https://github.com/JacksonWeber), Microsoft
277+
- [Jaryk](https://github.com/Ugzuzg), Volvo Cars
278+
- [Jonathan Lee](https://github.com/jj22ee)
279+
- [Jonathan Munz](https://github.com/jpmunz), Embrace
280+
- [kirrg001](https://github.com/kirrg001), Instana
281+
- [MartenH](https://github.com/mhennoch), Splunk
282+
- [Mike Goldsmith](https://github.com/MikeGoldsmith), Honeycomb
283+
- [Motti](https://github.com/mottibec)
284+
- [Punya Biswal](https://github.com/punya), Google
285+
- [Siim Kallas](https://github.com/seemk), Splunk
286+
- [Trivikram Kamat](https://github.com/trivikr), AWS
287+
- [t2t2](https://github.com/t2t2), Splunk
261288

262-
*Find more about the triager role in the [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#triager).*
289+
*Find more about the triager role in the [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#triager).*
263290

264291
#### Emeriti
265292

@@ -276,7 +303,7 @@ We have a weekly SIG meeting! See the [community page](https://github.com/open-t
276303
- [Gerhard Stöbich](https://github.com/Flarna), Dynatrace, Approver
277304
- [Haddas Bronfman](https://github.com/haddasbronfman), Cisco, Approver
278305

279-
*Find more about the emeritus role in [community repository](https://github.com/open-telemetry/community/blob/main/community-membership.md#emeritus-maintainerapprovertriager).*
306+
*Find more about the emeritus role in [community repository](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#emeritus-maintainerapprovertriager).*
280307

281308
#### Thanks to all the people who already contributed
282309

api/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
3232
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
3333
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
34-
"docs": "typedoc",
35-
"docs:deploy": "gh-pages --dist docs/out",
36-
"docs:test": "linkinator docs/out --silent && linkinator docs/*.md *.md --markdown --silent",
3734
"lint:fix": "eslint . --ext .ts --fix",
3835
"lint": "eslint . --ext .ts",
3936
"test:browser": "karma start --single-run",

api/src/experimental/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
/**
18+
* Any exports here may change at any time and without warning
19+
* @module @opentelemetry/api/experimental
20+
*/
21+
1622
export { wrapTracer, SugaredTracer } from './trace/SugaredTracer';
1723
export { SugaredSpanOptions } from './trace/SugaredOptions';

api/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17+
/**
18+
* @module @opentelemetry/api
19+
*/
20+
1721
export { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types';
1822
export { baggageEntryMetadataFromString } from './baggage/utils';
1923
export { Exception } from './common/Exception';

api/typedoc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"entryPoints": [
3+
"src/index.ts",
4+
"src/experimental/index.ts"
5+
]
6+
}

doc/metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ a new http server on port 9464. You can now access the metrics at the endpoint
521521
<http://localhost:9464/metrics>. This is the URL that can be scraped by Prometheus so it can consumed the metrics collected by OpenTelemetry in your application.
522522

523523
More information about Prometheus and how to configure can be found at:
524-
[https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config](Prometheus Scraping Config)
524+
[Prometheus Scraping Config](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config)
525525

526526
For a fully functioning code example for using this exporter, please have a look
527527
at: <https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/examples/prometheus>

examples/esm-http-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"@opentelemetry/resources": "1.30.0",
3939
"@opentelemetry/sdk-trace-base": "1.30.0",
4040
"@opentelemetry/sdk-trace-node": "1.30.0",
41-
"@opentelemetry/semantic-conventions": "1.28.0"
41+
"@opentelemetry/semantic-conventions": "^1.29.0"
4242
}
4343
}

examples/http/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@opentelemetry/resources": "1.30.0",
3838
"@opentelemetry/sdk-trace-base": "1.30.0",
3939
"@opentelemetry/sdk-trace-node": "1.30.0",
40-
"@opentelemetry/semantic-conventions": "1.28.0"
40+
"@opentelemetry/semantic-conventions": "^1.29.0"
4141
},
4242
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/http",
4343
"devDependencies": {

examples/https/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@opentelemetry/resources": "1.30.0",
4242
"@opentelemetry/sdk-trace-base": "1.30.0",
4343
"@opentelemetry/sdk-trace-node": "1.30.0",
44-
"@opentelemetry/semantic-conventions": "1.28.0"
44+
"@opentelemetry/semantic-conventions": "^1.29.0"
4545
},
4646
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/https",
4747
"devDependencies": {

examples/opentelemetry-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@opentelemetry/sdk-metrics": "1.30.0",
5959
"@opentelemetry/sdk-trace-base": "1.30.0",
6060
"@opentelemetry/sdk-trace-web": "1.30.0",
61-
"@opentelemetry/semantic-conventions": "1.28.0"
61+
"@opentelemetry/semantic-conventions": "^1.29.0"
6262
},
6363
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/tracer-web"
6464
}

examples/otlp-exporter-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@opentelemetry/resources": "1.30.0",
4141
"@opentelemetry/sdk-metrics": "1.30.0",
4242
"@opentelemetry/sdk-trace-base": "1.30.0",
43-
"@opentelemetry/semantic-conventions": "1.28.0"
43+
"@opentelemetry/semantic-conventions": "^1.29.0"
4444
},
4545
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/otlp-exporter-node"
4646
}

experimental/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ All notable changes to experimental packages in this project will be documented
2727
* fix(instrumentation-grpc): monitor error events with events.errorMonitor [#5369](https://github.com/open-telemetry/opentelemetry-js/pull/5369) @cjihrig
2828
* fix(exporter-metrics-otlp-http): browser OTLPMetricExporter was not passing config to OTLPMetricExporterBase super class [#5331](https://github.com/open-telemetry/opentelemetry-js/pull/5331) @trentm
2929
* fix(instrumentation-fetch, instrumentation-xhr): Ignore network events with zero-timings [#5332](https://github.com/open-telemetry/opentelemetry-js/pull/5332) @chancancode
30+
* fix(exporter-logs/trace-otlp-grpc): fix error for missing dependency otlp-exporter-base [#5412](https://github.com/open-telemetry/opentelemetry-js/pull/5412) @JamieDanielson
3031

3132
### :books: (Refine Doc)
3233

@@ -36,6 +37,7 @@ All notable changes to experimental packages in this project will be documented
3637
* refactor(otlp-exporter-base): remove unnecessary isNaN() checks [#5374](https://github.com/open-telemetry/opentelemetry-js/pull/5374) @cjihrig
3738
* refactor(exporter-prometheus): remove unnecessary isNaN() check [#5377](https://github.com/open-telemetry/opentelemetry-js/pull/5377) @cjihrig
3839
* refactor(sdk-node): move code to auto-instantiate propagators into utils [#5355](https://github.com/open-telemetry/opentelemetry-js/pull/5355) @pichlermarc
40+
* chore: unpin `@opentelemetry/semantic-conventions` dep to allow better de-duplication in installs [#5439](https://github.com/open-telemetry/opentelemetry-js/pull/5439) @trentm
3941

4042
## 0.57.0
4143

experimental/examples/opencensus-shim/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@opentelemetry/resources": "1.30.0",
3838
"@opentelemetry/sdk-metrics": "1.30.0",
3939
"@opentelemetry/sdk-trace-node": "1.30.0",
40-
"@opentelemetry/semantic-conventions": "1.28.0",
40+
"@opentelemetry/semantic-conventions": "^1.29.0",
4141
"@opentelemetry/shim-opencensus": "0.57.0"
4242
},
4343
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/examples/opencensus-shim"

experimental/packages/exporter-logs-otlp-grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@grpc/proto-loader": "^0.7.10",
5252
"@opentelemetry/api": "1.9.0",
5353
"@opentelemetry/api-logs": "0.57.0",
54-
"@opentelemetry/otlp-exporter-base": "0.57.0",
5554
"@opentelemetry/resources": "1.30.0",
5655
"@types/mocha": "10.0.10",
5756
"@types/node": "18.6.5",
@@ -70,6 +69,7 @@
7069
"dependencies": {
7170
"@grpc/grpc-js": "^1.7.1",
7271
"@opentelemetry/core": "1.30.0",
72+
"@opentelemetry/otlp-exporter-base": "0.57.0",
7373
"@opentelemetry/otlp-grpc-exporter-base": "0.57.0",
7474
"@opentelemetry/otlp-transformer": "0.57.0",
7575
"@opentelemetry/sdk-logs": "0.57.0"

experimental/packages/exporter-logs-otlp-grpc/src/index.ts

-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@
1414
* limitations under the License.
1515
*/
1616

17-
/* eslint no-restricted-syntax: ["warn", "ExportAllDeclaration"] --
18-
* TODO: Replace wildcard export with named exports before next major version
19-
*/
2017
export { OTLPLogExporter } from './OTLPLogExporter';

experimental/packages/exporter-trace-otlp-grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"devDependencies": {
5050
"@grpc/proto-loader": "^0.7.10",
5151
"@opentelemetry/api": "1.9.0",
52-
"@opentelemetry/otlp-exporter-base": "0.57.0",
5352
"@types/mocha": "10.0.10",
5453
"@types/node": "18.6.5",
5554
"@types/sinon": "17.0.3",
@@ -67,6 +66,7 @@
6766
"dependencies": {
6867
"@grpc/grpc-js": "^1.7.1",
6968
"@opentelemetry/core": "1.30.0",
69+
"@opentelemetry/otlp-exporter-base": "0.57.0",
7070
"@opentelemetry/otlp-grpc-exporter-base": "0.57.0",
7171
"@opentelemetry/otlp-transformer": "0.57.0",
7272
"@opentelemetry/resources": "1.30.0",

experimental/packages/opentelemetry-exporter-prometheus/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"devDependencies": {
4646
"@opentelemetry/api": "1.9.0",
47-
"@opentelemetry/semantic-conventions": "1.28.0",
47+
"@opentelemetry/semantic-conventions": "^1.29.0",
4848
"@types/mocha": "10.0.10",
4949
"@types/node": "18.6.5",
5050
"@types/sinon": "17.0.3",

experimental/packages/opentelemetry-instrumentation-fetch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"@opentelemetry/core": "1.30.0",
9191
"@opentelemetry/instrumentation": "0.57.0",
9292
"@opentelemetry/sdk-trace-web": "1.30.0",
93-
"@opentelemetry/semantic-conventions": "1.28.0"
93+
"@opentelemetry/semantic-conventions": "^1.29.0"
9494
},
9595
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-fetch",
9696
"sideEffects": false,

experimental/packages/opentelemetry-instrumentation-grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
"dependencies": {
7474
"@opentelemetry/instrumentation": "0.57.0",
75-
"@opentelemetry/semantic-conventions": "1.28.0"
75+
"@opentelemetry/semantic-conventions": "^1.29.0"
7676
},
7777
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-grpc",
7878
"sideEffects": false

experimental/packages/opentelemetry-instrumentation-grpc/src/clientUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function patchResponseMetadataEvent(
102102
call: EventEmitter,
103103
metadataCapture: metadataCaptureType
104104
) {
105-
call.on('metadata', (responseMetadata: any) => {
105+
call.on('metadata', (responseMetadata: Metadata) => {
106106
metadataCapture.client.captureResponseMetadata(span, responseMetadata);
107107
});
108108
}

experimental/packages/opentelemetry-instrumentation-grpc/src/instrumentation.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,22 @@ export class GrpcInstrumentation extends InstrumentationBase<GrpcInstrumentation
126126
this._wrap(
127127
moduleExports.Client.prototype,
128128
'makeUnaryRequest',
129-
this._patchClientRequestMethod(moduleExports, false) as any
129+
this._patchClientRequestMethod(moduleExports, false)
130130
);
131131
this._wrap(
132132
moduleExports.Client.prototype,
133133
'makeClientStreamRequest',
134-
this._patchClientRequestMethod(moduleExports, false) as any
134+
this._patchClientRequestMethod(moduleExports, false)
135135
);
136136
this._wrap(
137137
moduleExports.Client.prototype,
138138
'makeServerStreamRequest',
139-
this._patchClientRequestMethod(moduleExports, true) as any
139+
this._patchClientRequestMethod(moduleExports, true)
140140
);
141141
this._wrap(
142142
moduleExports.Client.prototype,
143143
'makeBidiStreamRequest',
144-
this._patchClientRequestMethod(moduleExports, true) as any
144+
this._patchClientRequestMethod(moduleExports, true)
145145
);
146146
return moduleExports;
147147
},

0 commit comments

Comments
 (0)