Closed
Description
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.