Skip to content

Commit

Permalink
chore(tracer): mark captureAWS & captureAWSClient methods as depr…
Browse files Browse the repository at this point in the history
…ecated (#2508)
  • Loading branch information
arnabrahman authored May 12, 2024
1 parent 00ebc11 commit e5cf50e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tracer/src/Tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ class Tracer extends Utility implements TracerInterface {
* }
* ```
*
* @deprecated Use {@link captureAWSv3Client} instead.
* @param aws - AWS SDK v2 import
* @returns AWS - Instrumented AWS SDK
*/
Expand Down Expand Up @@ -281,7 +282,7 @@ class Tracer extends Utility implements TracerInterface {
* ...
* }
* ```
*
* @deprecated Use {@link captureAWSv3Client} instead.
* @param service - AWS SDK v2 client
* @returns service - Instrumented AWS SDK v2 client
*/
Expand Down
6 changes: 6 additions & 0 deletions packages/tracer/src/provider/ProviderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ import {
import type { DiagnosticsChannel } from 'undici-types';

class ProviderService implements ProviderServiceInterface {
/**
* @deprecated
*/
public captureAWS<T>(awssdk: T): T {
return captureAWS(awssdk);
}

/**
* @deprecated
*/
public captureAWSClient<T>(service: T): T {
return captureAWSClient(service);
}
Expand Down

0 comments on commit e5cf50e

Please sign in to comment.