Skip to content

Commit e5cf50e

Browse files
authored
chore(tracer): mark captureAWS & captureAWSClient methods as deprecated (#2508)
1 parent 00ebc11 commit e5cf50e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/tracer/src/Tracer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ class Tracer extends Utility implements TracerInterface {
253253
* }
254254
* ```
255255
*
256+
* @deprecated Use {@link captureAWSv3Client} instead.
256257
* @param aws - AWS SDK v2 import
257258
* @returns AWS - Instrumented AWS SDK
258259
*/
@@ -281,7 +282,7 @@ class Tracer extends Utility implements TracerInterface {
281282
* ...
282283
* }
283284
* ```
284-
*
285+
* @deprecated Use {@link captureAWSv3Client} instead.
285286
* @param service - AWS SDK v2 client
286287
* @returns service - Instrumented AWS SDK v2 client
287288
*/

packages/tracer/src/provider/ProviderService.ts

+6
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ import {
3131
import type { DiagnosticsChannel } from 'undici-types';
3232

3333
class ProviderService implements ProviderServiceInterface {
34+
/**
35+
* @deprecated
36+
*/
3437
public captureAWS<T>(awssdk: T): T {
3538
return captureAWS(awssdk);
3639
}
3740

41+
/**
42+
* @deprecated
43+
*/
3844
public captureAWSClient<T>(service: T): T {
3945
return captureAWSClient(service);
4046
}

0 commit comments

Comments
 (0)