elastic / elastic/apm

Service environment correlation

Open
#773 0 comments 0 reactions 1 assignee Claimed by @SylvainJuge View on GitHub
apm-agents meta
Dominant language
Gherkin
Stars
427
Forks
125
PR merge metrics
No merged PRs in 30d

Description

# Description

Agent implementation of specification change #766

Summary of the required changes:
- updating documentation in https://github.com/elastic/observability-docs/pull/2731 to invite users to provide values for `service.version` and `service.environment` (by using `SERVICE_NAME` and `ENVIRONMENT` configurations respectively).
- when ecs-logging library is used:
- agents provide fallback values if they are not set in ecs-logging configuration for: `service.name`, `service.version` and `service.environment`. Giving priority to existing values (if any) avoids making this a breaking change.
- (optional but highly recommended) if values from agent configuration and ecs-logging configuration differ, issuing a warning is relevant to inform end user that traces and logs can't be properly correlated.
- when log reformatting (and log sending) is used:
- produced ECS logs should contain `service.name`, `service.version` and `service.environment` with values from agent configuration.

## Agent Issues
- [x] https://github.com/elastic/apm-agent-java/issues/3051 Milestone
- [x] https://github.com/elastic/apm-agent-dotnet/issues/2033 Milestone
- [x] https://github.com/elastic/apm-agent-nodejs/issues/3195 Milestone
- [x] https://github.com/elastic/apm-agent-python/issues/1772 Milestone
- [ ] https://github.com/elastic/apm-agent-go/issues/1401 Milestone
- [ ] https://github.com/elastic/apm-agent-php/issues/879 Milestone
- [ ] https://github.com/elastic/apm-agent-ruby/issues/1374 Milestone

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.