BeelineInstrumentation
public class SpanAspect extends Object implements BeelineInstrumentation
Constructor | Description |
---|---|
SpanAspect(Tracer tracer) |
Modifier and Type | Method | Description |
---|---|---|
Object |
around(org.aspectj.lang.ProceedingJoinPoint joinPoint,
ChildSpan span) |
|
protected String |
determineParameterFieldName(Parameter parameter,
int parameterIndex,
SpanField fieldAnnotation) |
A parameter is captured and added as a Span field if annotated with
SpanField . |
protected String |
determineSpanName(org.aspectj.lang.ProceedingJoinPoint joinPoint,
ChildSpan span) |
|
String |
getName() |
A simple human-readable name to identify a particular instrumentation.
|
public SpanAspect(Tracer tracer)
public String getName()
BeelineInstrumentation
getName
in interface BeelineInstrumentation
public Object around(org.aspectj.lang.ProceedingJoinPoint joinPoint, ChildSpan span) throws Throwable
Throwable
protected String determineSpanName(org.aspectj.lang.ProceedingJoinPoint joinPoint, ChildSpan span)
protected String determineParameterFieldName(Parameter parameter, int parameterIndex, SpanField fieldAnnotation)
SpanField
. The field name is derived
based on on the following order:
SpanField.name()
or SpanField.value()
).-parameters
option.
parameter
- to inspect.parameterIndex
- showing position of the parameter in the list of parameters.fieldAnnotation
- to inspect.Copyright © 2019–2020 Honeycomb. All rights reserved.