Interface ITracePointBuilder
interface ITracePointBuilder
Extends com.amazon.apmf.IStandard
ITracePointBuilder interface is a builder for creating
a generic tracepoint calls for begin, end, and instant tracepoints.
When using ITraceCategory to make a tracepoint, a name and args
must be passed or a tracepoint will not be properly emitted.
All other categories are optional.
Methods
name()
Sets the name of tracepoint for ITracePointBuilder that will used by ITracePoint. Once set, this cannot be changed within the object.ITracePointBuilder*name(stringname)
Parameters
name
string — Required
Name of tracepoint.
Returns
ITracePointBuilder*
ITracePointBuilder with set name.
cookie()
Sets the thread ID of tracepoint for ITracePointBuilder that will used by ITracePoint. Once set, this cannot be changed within the object.ITracePointBuilder*cookie(i64cookie)
Parameters
cookie
i64 — Required
Thread id.
Returns
ITracePointBuilder*
ITracePointBuilder with set cookie.
build()
Builds an instance of ITraceCategory with set parameters from previous methods.ITracePoint*build()
Returns
ITracePoint*
ITracePoint with set parameters.

