Skip to content
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

Migrate to Go 1.21's native slog #764

Merged
merged 25 commits into from
Dec 12, 2023
Merged

Migrate to Go 1.21's native slog #764

merged 25 commits into from
Dec 12, 2023

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Dec 6, 2023

Uses slog and gets rid of logrus.
flowName, deploymentUid and for the most part partitionId are now set at the top level function/workflow calls and are accessed by children for logs. They do not need to be specified when logging. The context values are read via logging middleware in logger/handler.go.

flow/activities/flowable.go Outdated Show resolved Hide resolved
flow/connectors/bigquery/bigquery.go Outdated Show resolved Hide resolved
flow/connectors/bigquery/bigquery.go Outdated Show resolved Hide resolved
flow/connectors/bigquery/bigquery.go Outdated Show resolved Hide resolved
@serprex
Copy link
Contributor

serprex commented Dec 6, 2023

What made you choose slog over zerolog/zap? Preference for stdlib?

flow/connectors/eventhub/hubmanager.go Outdated Show resolved Hide resolved
flow/connectors/bigquery/qrep.go Outdated Show resolved Hide resolved
flow/shared/constants.go Outdated Show resolved Hide resolved
flow/shared/constants.go Outdated Show resolved Hide resolved
@Amogh-Bharadwaj Amogh-Bharadwaj merged commit 8a0480f into main Dec 12, 2023
12 checks passed
@serprex serprex deleted the migrate-logs branch July 19, 2024 15:21
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.

3 participants