getsentry / getsentry/sentry-javascript
Extension of shouldCreateSpanForRequest to cover usual cases
Đang mở
Improvement
Node.js
- 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ả
### Problem Statement
Right now the `shouldCreateSpanForRequest` callback could be helpful to distinguish between API endpoints and decide whether a request should be decorated with the distributed tracing headers. Besides just having the URL at hand to make a decision, it would be helpful to provide some more request specific information – especially the HTTP method. That would help to only send the tracing headers to API methods that could deal with those.
### Solution Brainstorm
Extend the `shouldCreateSpanForRequest` by an additional parameter providing at least the HTTP method.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.