EXPAND ALL
  • Home

px.otel.Data

Specifies the transformation of a DataFrame into OpenTelemetry data.

This function makes it easy to transform columnar DataFrame data into single element OpenTelemetry data. User must pass in data configuration(s) (ie px.otel.metric.Gauge) and a resource config where service.name is one of the attributes. Optionally, users can specify an endpoint using px.otel.Endpoint.

Arguments

NameTypeDescription
dataList[px.otel.Data]The list of OTel configurations for the data, describing how the data is created in the DataFrame and what kind of metric to populate in OTel.
resourceDict[string, Column|string]A description of the resource that creates this data. Is a mapping of attribute name to a string or a column that stores data about the attribute. Must include 'service.name' as one attribute.
endpointpx.otel.Endpoint, optionalThe endpoint configuration value. The endpoint can be omitted if this script is run in the OTel plugin context where an endpoint is configured.

Returns

Exporter: the description of how to map a DataFrame to OpenTelemetry Data. Can be passed into px.export.

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.