resolveSpanName

open fun resolveSpanName(method: PlatformMethod, args: Array<Any?>): String?(source)

Resolves the span name for the given platform method invocation.

Span name resolution works as follows:

  1. If this method returns a non-null value, that name is used.

  2. Otherwise, the annotation name is used.

  3. If the annotation name is blank, the method name is used.

Return

a custom span name for this invocation, or null to fall back to the annotation or method name.

Parameters

method

the platform method being invoked.

args

the arguments passed to the method.