Skip to content

Commit 0b2abbd

Browse files
committed
[EXPORTERS]: elastic search set instrumentation scope within log.logger instead of
`name` According to ECS logging reference https://www.elastic.co/guide/en/ecs/8.11/ecs-log.html#field-log-logger Refs #3091
1 parent c6c19ef commit 0b2abbd

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
@@ -323,7 +323,7 @@ void ElasticSearchRecordable::SetInstrumentationScope(
323323
const opentelemetry::sdk::instrumentationscope::InstrumentationScope
324324
&instrumentation_scope) noexcept
325325
{
326-
json_["name"] = instrumentation_scope.GetName();
326+
json_["log"]["logger"] = instrumentation_scope.GetName();
327327
}
328328

329329
} // namespace logs

0 commit comments

Comments
 (0)