- The deprecated sources convert each OpenTelemetry record into a Mezmo-specific event. The main payload (log body, metric, or span) goes in
message, and the OpenTelemetry context (resource, scope, attributes) goes inmetadata. - The OpenTelemetry source passes each record through in its original OpenTelemetry JSON form. Everything, including the resource and scope, is inside
message.
At a glance
The OpenTelemetry source envelope
All three outputs share the same envelope.message.type is log, metric, or trace, and message.record holds the signal-specific fields:
annotations.appis set from theservice.nameresource attribute, ork8s.container.nameif that isn’t set.annotations.hostis set from thek8s.pod.nameresource attribute, orhost.nameif that isn’t set.timestampis set from the record’s time:
Logs
In the deprecated Logs source,
metadata.resource holds resource attributes directly. In the deprecated Metrics and Traces sources, they’re nested under metadata.resource.attributes. In the OpenTelemetry source, they’re always at message.resource.attributes.Metrics
Which fields appear in
dataPoint depends on the metric type. The example above is a gauge. Sums, histograms, and summaries can carry other fields.Traces
Migrating from the deprecated sources
When you replace the deprecated sources with the OpenTelemetry source:- Add one OpenTelemetry source, and connect each downstream processor to its Logs, Metrics, or Traces output.
- Update the field paths your processors use, following the tables above. For example:
- Logs:
messagebecomesmessage.record.body - Metrics:
message.namebecomesmessage.record.metric.name - Traces:
message.trace_idbecomesmessage.record.traceId - All signals:
metadata.resource…becomesmessage.resource.attributes…
- Logs:
- Convert values before doing math or numeric comparisons: metric values,
*UnixNanotimes, and many attribute values arrive as strings. - Check for anything that relies on fields the new source doesn’t set, such as
annotations.levelon logs ormetadata.levelon traces. - If a destination expects Mezmo metric events, add a processor that remaps the OpenTelemetry metric fields to the Mezmo metric format first.

