Skip to content

Commit

Permalink
[EXPORTERS]: elastic search set instrumentation scope within `log.log…
Browse files Browse the repository at this point in the history
…ger` instead of

`name`

According to ECS logging reference
https://www.elastic.co/guide/en/ecs/8.11/ecs-log.html#field-log-logger

Refs open-telemetry#3091
  • Loading branch information
ShadowMaxLeb committed Oct 18, 2024
1 parent 53d72bf commit ff35e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/elasticsearch/src/es_log_recordable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void ElasticSearchRecordable::SetInstrumentationScope(
const opentelemetry::sdk::instrumentationscope::InstrumentationScope
&instrumentation_scope) noexcept
{
json_["name"] = instrumentation_scope.GetName();
json_["log"]["logger"] = instrumentation_scope.GetName();
}

} // namespace logs
Expand Down

0 comments on commit ff35e7a

Please sign in to comment.