langfuse_client_base/models/
otel_attribute.rs

1/*
2 * langfuse
3 *
4 * ## Authentication  Authenticate with the API using [Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), get API keys in the project settings:  - username: Langfuse Public Key - password: Langfuse Secret Key  ## Exports  - OpenAPI spec: https://cloud.langfuse.com/generated/api/openapi.yml - Postman collection: https://cloud.langfuse.com/generated/postman/collection.json
5 *
6 * The version of the OpenAPI document:
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// OtelAttribute : Key-value attribute pair for resources, scopes, or spans
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, bon::Builder)]
16pub struct OtelAttribute {
17    /// Attribute key (e.g., \"service.name\", \"langfuse.observation.type\")
18    #[serde(
19        rename = "key",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub key: Option<Option<String>>,
25    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
26    pub value: Option<Box<models::OtelAttributeValue>>,
27}
28
29impl OtelAttribute {
30    /// Key-value attribute pair for resources, scopes, or spans
31    pub fn new() -> OtelAttribute {
32        OtelAttribute {
33            key: None,
34            value: None,
35        }
36    }
37}