Skip to content

Error with XRay and EventBridgeClient #664

@allen-monark

Description

@allen-monark

Hello, I am getting an error when using aws-xray-sdk with @aws-sdk/client-eventbridge.

I tried to instrument event bridge using the captureAWSv3Client like so:

import AWSXRay from 'aws-xray-sdk';
import { EventBridgeClient } from '@aws-sdk/client-eventbridge';

const eventClient = AWSXRay.captureAWSv3Client(new EventBridgeClient());

and I get an error:
TypeError: Cannot read properties of undefined (reading 'remove') at Object.captureAWSClient [as captureAWSv3Client].

Here are the version I am using:
"aws-xray-sdk": "^3.9.0",
"@aws-sdk/client-eventbridge": "^3.215.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions