getsentry / getsentry/sentry-javascript

Document the need to mark libraries that should be otel instrumented as external when using bundling solutions like AWS SAM for AWS Lambda

Đang mở
#14,028 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
AWS Lambda Docs OpenTelemetry
Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
1.8k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
515

Mô tả

### Description

Using frameworks like AWS SAM or AWS CDK to upload and maintain AWS Lambda functions usually bundles all of the code and its dependencies into a single file.

This prevents otel from hooking into any libraries it [offers custom instrumentation](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node) for, e.g.`pg`.

### Solution Brainstorming

Document the need to mark libraries that should be instrumented as external and the need of a lambda layer to hold such dependencies when bundling AWS Lambda functions.

Once/if https://github.com/open-telemetry/opentelemetry-js/issues/4174 lands, we can consider removing this documentation again.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.