Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with XRay and EventBridgeClient #664

Open
allen-monark opened this issue Jul 2, 2024 · 1 comment
Open

Error with XRay and EventBridgeClient #664

allen-monark opened this issue Jul 2, 2024 · 1 comment

Comments

@allen-monark
Copy link

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",

@allen-monark
Copy link
Author

Looking at the issue of @Jesusdiazrivero, it was fixed by upgrading the version to 3.9.0. However, in my case, XRay version was already at 3.9.0 when I encountered the issue. Still not sure how to go about on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant