Skip to content

feat(aws): Add OTEL based integrations - #11548

Merged
AbhiPrasad merged 4 commits into
developfrom
abhi-aws-serverless-esm
Apr 22, 2024
Merged

feat(aws): Add OTEL based integrations#11548
AbhiPrasad merged 4 commits into
developfrom
abhi-aws-serverless-esm

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Contributor

ref #11066
ref #10976

resolves#8575 and resolves#9839 because otel instrumentation supports aws sdk v2 and v3

resolves#11101

@AbhiPrasadAbhiPrasad self-assigned this Apr 11, 2024
@AbhiPrasad
AbhiPrasadforce-pushed the abhi-aws-serverless-esm branch from 67e3afb to 298b073CompareApril 11, 2024 00:54
@AbhiPrasad
AbhiPrasad marked this pull request as ready for review April 11, 2024 01:45
Comment threadpackages/aws-serverless/package.json Outdated
AbhiPrasad added a commit that referenced this pull request Apr 18, 2024
Adds `addOpenTelemetryInstrumentation`, a helper that can be used to
dynamically register OpenTelemetry instrumentation. This helps unblock
work on #11548
The helper itself is quite small:
```ts
export function addOpenTelemetryInstrumentation(
instrumentation: InstrumentationOption | InstrumentationOption[],
): void {
registerInstrumentations({
instrumentations: Array.isArray(instrumentation) ? instrumentation : [instrumentation],
});
}
```
and is designed to accept either a standalone instrumentation or an
array of instrumentations. This gives users a ton of flexibility into
usage!
@AbhiPrasad
AbhiPrasadforce-pushed the abhi-aws-serverless-esm branch from 2c29668 to 7538f3bCompareApril 18, 2024 16:18
@AbhiPrasad
AbhiPrasad requested a review from mydeaApril 18, 2024 16:22
@github-actions

github-actionsBot commented Apr 18, 2024

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser21.67 KB (0%)
@sentry/browser (incl. Tracing)32.64 KB (0%)
@sentry/browser (incl. Tracing, Replay)67.92 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags61.32 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas)71.74 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback)84.14 KB (0%)
@sentry/browser (incl. Feedback)37.78 KB (0%)
@sentry/browser (incl. sendFeedback)26.45 KB (0%)
@sentry/browser (incl. FeedbackAsync)30.93 KB (0%)
@sentry/react24.35 KB (0%)
@sentry/react (incl. Tracing)35.54 KB (0%)
@sentry/vue25.25 KB (0%)
@sentry/vue (incl. Tracing)34.4 KB (0%)
@sentry/svelte21.79 KB (0%)
CDN Bundle23.97 KB (0%)
CDN Bundle (incl. Tracing)33.88 KB (0%)
CDN Bundle (incl. Tracing, Replay)67.41 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback)83.22 KB (0%)
CDN Bundle - uncompressed70.62 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed100.67 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed210.08 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed256.39 KB (0%)
@sentry/nextjs (client)34.77 KB (0%)
@sentry/sveltekit (client)33.13 KB (0%)
@sentry/node154.4 KB (0%)

@AbhiPrasad
AbhiPrasadforce-pushed the abhi-aws-serverless-esm branch from 6947ed2 to 5483d3bCompareApril 22, 2024 16:03
@AbhiPrasad
AbhiPrasad enabled auto-merge (squash) April 22, 2024 16:27
@AbhiPrasad
AbhiPrasad merged commit 144a5f0 into developApr 22, 2024
@AbhiPrasad
AbhiPrasad deleted the abhi-aws-serverless-esm branch April 22, 2024 16:30
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explore using @opentelemetry/instrumentation-aws-lambda for AWS Serverless SDK Drop support for AWS SDK v2 AWS SDK v3 Support (v2 deprecation)

2 participants

@AbhiPrasad@mydea