Error with XRay and EventBridgeClient
- Dominant language
- JavaScript
- Stars
- 280
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
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",`
Contributor guide
Research direction
Start by reproducing the shown captureAWSv3Client call with aws-xray-sdk 3.9.0 and @aws-sdk/client-eventbridge 3.215.0. Trace captureAWSv3Client into captureAWSClient at the reported undefined remove failure and compare the EventBridgeClient integration with supported AWS SDK v3 clients. Done means the integration no longer throws for this client and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript, node.js
- Domain
- backend, observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100