Skip to content

Improve errors#57

Merged
VojtechVitek merged 1 commit into
masterfrom
improve-errors-httplog-seterrorctx-err-t
Jun 11, 2025
Merged

Improve errors#57
VojtechVitek merged 1 commit into
masterfrom
improve-errors-httplog-seterrorctx-err-t

Conversation

@VojtechVitek

@VojtechVitek VojtechVitek commented Jun 11, 2025

Copy link
Copy Markdown
Contributor
  • httplog.SetError(ctx, err) to set error attribute on the request log
  • fix the ECS/OTEL/GCP schema field names
  • add ErrorType to schema, a low-cardinality error type ("ClientDisconnected", "ValidationError", etc.)
  • set ClientDisconnected error if req.Context() is canceled

- httplog.SetError(ctx, err) to set error attribute on the request log
- fix the ECS/OTEL/GCP schema field names
- set ClientDisconnected error if req.Context() is canceled
@VojtechVitek VojtechVitek force-pushed the improve-errors-httplog-seterrorctx-err-t branch from 38361e4 to 1c73d51 Compare June 11, 2025 12:56
@VojtechVitek VojtechVitek merged commit 4f9490c into master Jun 11, 2025
Sign up for free to 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.

2 participants