-
Notifications
You must be signed in to change notification settings - Fork 123
Description
Description of the issue
In elastic/apm-agent-java#696 support is being added for extracting the Database Link from queries. This is an Oracle database feature for linking multiple databases to form a single logical database.
Queries across these databases may have different performance characteristics, since they may be geographically distributed, on different hardware, or under different load. As such it may be useful to know which remote database a query is operating on.
Proposal
Add the following field to span context:
| Intake API field | Elasticsearch field |
|---|---|
| context.db.link (string, optional) | span.db.link (keyword) |
Initially this field would not be displayed in the APM UI, as the link is already visible in the statement. It would be indexed separately for custom visualisations, breaking down metrics by destination database. (See elastic/apm-agent-java#696 (comment))
@wolframhaussig @elastic/apm-agent-devs @elastic/apm-server please take a look and comment if you have any concerns.