Skip to content

Commit

Permalink
Remove deprecated log name from text marshaler (open-telemetry#5172)
Browse files Browse the repository at this point in the history
LogRecord.Name has been deprecated, but there is still a reference to it in the logging exporter. This change removes the name from the logging exporter output.
  • Loading branch information
djaglowski authored Apr 11, 2022
1 parent 790a48b commit 418ae40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Add Scheme to MapProvider interface (#5068)
- Do not set MeterProvider to global otel (#5146)
- Make `InstrumentationLibrary<signal>ToScope` helper functions unexported (#5164)
- Remove Log's "ShortName" from logging exporter output (#5172)

### 🚩 Deprecations 🚩

Expand Down
1 change: 0 additions & 1 deletion internal/otlptext/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (textLogsMarshaler) MarshalLogs(ld pdata.Logs) ([]byte, error) {
lr := logs.At(k)
buf.logEntry("Timestamp: %s", lr.Timestamp())
buf.logEntry("Severity: %s", lr.SeverityText())
buf.logEntry("ShortName: %s", lr.Name())
buf.logEntry("Body: %s", attributeValueToString(lr.Body()))
buf.logAttributes("Attributes", lr.Attributes())
buf.logEntry("Trace ID: %s", lr.TraceID().HexString())
Expand Down

0 comments on commit 418ae40

Please sign in to comment.