Skip to content

Split span type into 3 fields: Type, Subtype and Action #713

Closed
@watson

Description

@watson

Implement support for this API change: elastic/apm-server#1618

This involves changing this API:

agent.startSpan([name][, type])

To this:

agent.startSpan([name][, type][, subType][, action])

If the function is called with only 2 arguments, it's assumed that type is of the old dot-separated format type.subtype.action. In that case the agent should split on . and fill type, subType and action accordingly.

We should also add a new span.setType(type[, subType][, action]) function. If the type is set via span.type = '...' it's assumed that it's in the old dot-separate format and should automatically be split like if agent.startSpan() is called only with the name and type argument.

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