Skip to content

Endpoint logger#14

Merged
VojtechVitek merged 4 commits intomasterfrom
endpoint_logger
Sep 22, 2025
Merged

Endpoint logger#14
VojtechVitek merged 4 commits intomasterfrom
endpoint_logger

Conversation

@david-littlefarmer
Copy link
Contributor

This PR adds endpoint logger, which would add endpoint name, service name and time when the request was received.

Then whenever we would do log from application, we would also get these attributes in log, for better debugging and tracking. It would also add these attributes to logs outside of the handler, for example to logs from database functions, etc.

slog.String("service", values.service)
slog.String("endpoint", values.endpoint)
slog.Duration("since", time.Since(values.time))

david-littlefarmer and others added 2 commits September 22, 2025 14:03
Co-authored-by: Vojtech Vitek (golang.cz) <vv@sequence.xyz>
Copy link
Contributor

@VojtechVitek VojtechVitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VojtechVitek VojtechVitek merged commit cdc5f61 into master Sep 22, 2025
2 checks passed
@VojtechVitek VojtechVitek deleted the endpoint_logger branch September 22, 2025 14:55
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