Skip to content

Proposal: add Database Link to span context #107

@axw

Description

@axw

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions