Closed
Description
- specification: add
service.environment
in ECS reformatting: Spec service.environment for logs #766 - specification: define "service-level" correlation and "trace-level" correlation in specs/agents/log-correlation.md : Spec service.environment for logs #766
- trace level is defined with
trace.id
,transaction.id
- service level is defined with
service.name
,service.version
,service.environment
- question: should we include the
container.id
in the agents specification too ? Yes & no: we can mention it for reference but agents are not expected to set it.
- trace level is defined with
- documentation: document the log correlation fields (both service-level and trace-level) in the "log-correlation" section:
- APM: https://www.elastic.co/guide/en/apm/guide/current/log-correlation.html#_add_apm_identifiers_to_your_logs : Document service log correlation apm-server#10454
- Application logs: https://www.elastic.co/guide/en/observability/current/application-logs.html provide filebeat|ecs-logging configuration options to set the service-level metadata. Enhance service correlation doc observability-docs#2731
- for each agent, here for Java : https://www.elastic.co/guide/en/apm/agent/java/current/logs.html#log-correlation-ids (we might also take the opportunity to also align the Logs documentation structure of each agent) [doc] Align agents logs documentation #800
- add
service.environment
to ECS logging documentation: https://www.elastic.co/guide/en/ecs-logging/overview/current/intro.html#_configurable_fields : add service.{version,environment} to docs ecs-logging#75
Out of scope for now
- spec and document behavior of
error.id
when an error is reported in the logs (currently the Java agent creates an error, this feature is currently documented as Error capturing) - adding
service.name
,service.environment
andservice.version
to the fields that are automatically injected in MDCs for log correlation: this would allow for example to use those in plain-text logs. - specify and document the
span.id
for log correlation.
Metadata
Metadata
Assignees
Labels
No labels