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

[chore] fix internal zap field key constant name #8881

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[chore] fix internal zap field key constant name
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed Nov 14, 2023
commit 7da3486c7d489e1d1cb53a083e1785047477e90a
4 changes: 2 additions & 2 deletions service/internal/components/loggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const (
zapKindProcessor = "processor"
zapKindExporter = "exporter"
zapKindExtension = "extension"
zapKindPipeline = "pipeline"
zapNameKey = "name"
zapDataTypeKey = "data_type"
zapStabilityKey = "stability"
zapPipelineKey = "pipeline"
zapExporterInPipeline = "exporter_in_pipeline"
zapReceiverInPipeline = "receiver_in_pipeline"
)
Expand All @@ -34,7 +34,7 @@ func ProcessorLogger(logger *zap.Logger, id component.ID, pipelineID component.I
return logger.With(
zap.String(zapKindKey, zapKindProcessor),
zap.String(zapNameKey, id.String()),
zap.String(zapKindPipeline, pipelineID.String()))
zap.String(zapPipelineKey, pipelineID.String()))
}

func ExporterLogger(logger *zap.Logger, id component.ID, dt component.DataType) *zap.Logger {
Expand Down
Loading