EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
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
.
Name | Type | Description |
---|---|---|
data | List[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. |
resource | Dict[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. |
endpoint | px.otel.Endpoint, optional | The endpoint configuration value. The endpoint can be omitted if this script is run in the OTel plugin context where an endpoint is configured. |