Component schema
Telemetry Transformation Rule Context
string1 direct reference
Definition
The OTTL evaluation context that determines which telemetry fields are accessible to the statements. Not all contexts are valid for all signal types:
For traces:
resource: Transform resource-level attributes.scope: Transform instrumentation scope-level attributes.span: Transform individual span properties and attributes.spanevent: Transform individual span event properties and attributes.
For metrics:
resource: Transform resource-level attributes.scope: Transform instrumentation scope-level attributes.metric: Transform metric-level properties (name, description, type).datapoint: Transform individual metric data point attributes.
For logs:
resource: Transform resource-level attributes.scope: Transform instrumentation scope-level attributes.log: Transform individual log record properties (body, severity, attributes).
For profiles:
resource: Transform resource-level attributes.scope: Transform instrumentation scope-level attributes.profile: Transform individual profile properties and attributes.
Contexts never supply access to items lower in the protobuf hierarchy, but always supply access to
items higher in the hierarchy. For example, a datapoint context can access its metric, scope, and
resource, but a metric context cannot access individual data points.
string
Allowed values
"resource""scope""span""spanevent""metric""datapoint""log""profile"Used by 1
These schemas and endpoints reference this type directly.