Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

feat: 4xx http error no longer act as errors #37

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

psmarcin
Copy link
Owner

Context

Usually HTTP errors code like 400 or 404 should not be treat as an error. This option has been added to opentelemetry specification in open-telemetry/opentelemetry-specification#1998

Changes

  • Use newly added function SpanStatusFromHTTPStatusCodeAndSpanKind as a way to get spanStatus and spanMessage

@psmarcin psmarcin added the enhancement New feature or request label Dec 14, 2021
@psmarcin psmarcin self-assigned this Dec 14, 2021
@psmarcin psmarcin merged commit 4885a64 into master Dec 14, 2021
@psmarcin psmarcin deleted the feat/4xx-no-longer-errors branch December 14, 2021 17:30
@psmarcin psmarcin restored the feat/4xx-no-longer-errors branch December 14, 2021 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant