Class AttributeKeyTemplate<T>

java.lang.Object
io.opentelemetry.semconv.AttributeKeyTemplate<T>
Type Parameters:
T - The type of the nested AttributeKeys.

public final class AttributeKeyTemplate<T> extends Object
This class provides a handle for creating and caching dynamic / template-type attributes of the form <prefix>.<key>. The <prefix> is fixed for a template instance while AttributeKeys can be created and are cached for different values of the <key> part.

An example template-type attribute is the set of attributes for HTTP headers: http.request.header.<key>