Skip to content

Commit b644f21

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 9a28a01 commit b644f21

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

330330
} // namespace logs

0 commit comments

Comments
 (0)