-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Request for Custom SpanStatus Constuctor #1548
Comments
I would like to create a PR, if there is no problem with it |
Hi,
|
our project has original http status which is not included in https://github.com/getsentry/sentry-dart/blob/main/dart/lib/src/protocol/span_status.dart 😢 |
@ostk0069 the Sentry's span status is a sentry protocol, it does not map 1:1 to the HTTP spec. |
Problem Statement
by looking at https://github.com/getsentry/sentry-dart/blob/main/dart/lib/src/protocol/span_status.dart ,
SpanStatus
only support custom SpanStatus withSpanStatus.fromString()
.Our project has original HttpStatus to handle.
Is there any problem to create constructor for both
value
andhttpStatusCode
.Solution Brainstorm
add constructor for SpanStatus with
Are you willing to submit a PR?
Yes
The text was updated successfully, but these errors were encountered: