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

[pkg/translator/loki] Split conversion logic into a package #14106

Merged
merged 8 commits into from
Sep 16, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
I can't spell
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling committed Sep 16, 2022
commit da9de27826d58684743cc3b2a5a39fb008e67e65
2 changes: 1 addition & 1 deletion pkg/translator/loki/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type lokiEntry struct {

// Encode converts an OTLP log record and its resource attributes into a JSON
// string representing a Loki entry. An error is returned when the record can't
// be marshalled into JSON.
// be marshaled into JSON.
func Encode(lr plog.LogRecord, res pcommon.Resource) (string, error) {
var logRecord lokiEntry
var jsonRecord []byte
Expand Down