Skip to content

Commit

Permalink
[chore] fix internal zap field key constant name (#8881)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu authored Nov 14, 2023
1 parent b501427 commit 9553044
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 9553044

Please sign in to comment.