Skip to content

Commit 9cbd5d0

Browse files
committed
[EXPORTERS]: elastic search log message within message key instead of
`body` According to ECS logging reference https://www.elastic.co/guide/en/ecs/8.11/ecs-base.html#field-message Refs #3091
1 parent 63683c1 commit 9cbd5d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporters/elasticsearch/src/es_log_recordable.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void ElasticSearchRecordable::SetSeverity(opentelemetry::logs::Severity severity
232232

233233
void ElasticSearchRecordable::SetBody(const opentelemetry::common::AttributeValue &message) noexcept
234234
{
235-
WriteValue(message, "body");
235+
WriteValue(message, "message");
236236
}
237237

238238
void ElasticSearchRecordable::SetTraceId(const opentelemetry::trace::TraceId &trace_id) noexcept

0 commit comments

Comments
 (0)