Skip to content

Conversation

@putcho01
Copy link

Summary

fix: #1078

Problem

The event_name field was added to the OTLP LogRecord proto in open-telemetry/opentelemetry-proto#600, but the logs exporter was not handling this field. Previously, event names were set as event.name attributes and were captured in labels. With the new dedicated proto field, this information was being dropped.

Solution

Map the OTLP event_name field to the Cloud Logging LogEntry label "event.name". This approach:

  • Maintains backward compatibility with the previous convention of using event.name as an attribute
  • Works for all log payload types (text, JSON, etc.)
  • Allows easy querying via labels."event.name" in Cloud Logging

@putcho01 putcho01 requested a review from a team as a code owner December 20, 2025 18:26
@dashpole
Copy link
Contributor

dashpole commented Jan 6, 2026

/gcbrun

@DylanRussell how did you handle Event name in the python SDK log exporter? We should probably try to be consistent here.

@dashpole dashpole requested a review from DylanRussell January 6, 2026 18:47
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.

Collector logs exporter drops the OTLP event_name

2 participants