pub struct SpanData {Show 68 fields
pub app_start_type: Annotated<Value>,
pub ai_total_tokens_used: Annotated<Value>,
pub ai_prompt_tokens_used: Annotated<Value>,
pub ai_completion_tokens_used: Annotated<Value>,
pub browser_name: Annotated<String>,
pub code_filepath: Annotated<Value>,
pub code_lineno: Annotated<Value>,
pub code_function: Annotated<Value>,
pub code_namespace: Annotated<Value>,
pub db_operation: Annotated<Value>,
pub db_system: Annotated<Value>,
pub db_collection_name: Annotated<Value>,
pub environment: Annotated<String>,
pub release: Annotated<LenientString>,
pub http_decoded_response_content_length: Annotated<Value>,
pub http_request_method: Annotated<Value>,
pub http_response_content_length: Annotated<Value>,
pub http_response_transfer_size: Annotated<Value>,
pub resource_render_blocking_status: Annotated<Value>,
pub server_address: Annotated<Value>,
pub cache_hit: Annotated<Value>,
pub cache_key: Annotated<Value>,
pub cache_item_size: Annotated<Value>,
pub http_response_status_code: Annotated<Value>,
pub ai_pipeline_name: Annotated<Value>,
pub ai_model_id: Annotated<Value>,
pub ai_input_messages: Annotated<Value>,
pub ai_responses: Annotated<Value>,
pub thread_name: Annotated<String>,
pub thread_id: Annotated<ThreadId>,
pub segment_name: Annotated<String>,
pub ui_component_name: Annotated<Value>,
pub url_scheme: Annotated<Value>,
pub user: Annotated<Value>,
pub user_email: Annotated<String>,
pub user_full_name: Annotated<String>,
pub user_geo_country_code: Annotated<String>,
pub user_geo_city: Annotated<String>,
pub user_geo_subdivision: Annotated<String>,
pub user_geo_region: Annotated<String>,
pub user_hash: Annotated<String>,
pub user_id: Annotated<String>,
pub user_name: Annotated<String>,
pub user_roles: Annotated<Array<String>>,
pub exclusive_time: Annotated<Value>,
pub profile_id: Annotated<Value>,
pub replay_id: Annotated<Value>,
pub sdk_name: Annotated<String>,
pub sdk_version: Annotated<String>,
pub frames_slow: Annotated<Value>,
pub frames_frozen: Annotated<Value>,
pub frames_total: Annotated<Value>,
pub frames_delay: Annotated<Value>,
pub messaging_destination_name: Annotated<String>,
pub messaging_message_retry_count: Annotated<Value>,
pub messaging_message_receive_latency: Annotated<Value>,
pub messaging_message_body_size: Annotated<Value>,
pub messaging_message_id: Annotated<String>,
pub user_agent_original: Annotated<String>,
pub url_full: Annotated<String>,
pub client_address: Annotated<IpAddr>,
pub route: Annotated<Route>,
pub previous_route: Annotated<Route>,
pub lcp_element: Annotated<String>,
pub lcp_size: Annotated<u64>,
pub lcp_id: Annotated<String>,
pub lcp_url: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Arbitrary additional data on a span.
Besides arbitrary user data, this type also contains SDK-provided fields used by the product (see https://develop.sentry.dev/sdk/performance/span-data-conventions/).
Fields§
§app_start_type: Annotated<Value>
Mobile app start variant.
Can be either “cold” or “warm”.
ai_total_tokens_used: Annotated<Value>
The total tokens that were used by an LLM call
ai_prompt_tokens_used: Annotated<Value>
The input tokens used by an LLM call (usually cheaper than output tokens)
ai_completion_tokens_used: Annotated<Value>
The output tokens used by an LLM call (the ones the LLM actually generated)
browser_name: Annotated<String>
The client’s browser name.
code_filepath: Annotated<Value>
The source code file name that identifies the code unit as uniquely as possible.
code_lineno: Annotated<Value>
The line number in code.filepath
best representing the operation.
code_function: Annotated<Value>
The method or function name, or equivalent.
Usually rightmost part of the code unit’s name.
code_namespace: Annotated<Value>
The “namespace” within which code.function
is defined.
Usually the qualified class or module name, such that
code.namespace + some separator + code.function
form a unique identifier for the code unit.
db_operation: Annotated<Value>
The name of the operation being executed.
E.g. the MongoDB command name such as findAndModify, or the SQL keyword. Based on OpenTelemetry’s call level db attributes.
db_system: Annotated<Value>
An identifier for the database management system (DBMS) product being used.
See OpenTelemetry docs for a list of well-known identifiers.
db_collection_name: Annotated<Value>
The name of a collection (table, container) within the database.
environment: Annotated<String>
The sentry environment.
release: Annotated<LenientString>
The release version of the project.
http_decoded_response_content_length: Annotated<Value>
The decoded body size of the response (in bytes).
http_request_method: Annotated<Value>
The HTTP method used.
http_response_content_length: Annotated<Value>
The encoded body size of the response (in bytes).
http_response_transfer_size: Annotated<Value>
The transfer size of the response (in bytes).
resource_render_blocking_status: Annotated<Value>
The render blocking status of the resource.
server_address: Annotated<Value>
Name of the web server host.
cache_hit: Annotated<Value>
Whether cache was hit or miss on a read operation.
cache_key: Annotated<Value>
The name of the cache key.
cache_item_size: Annotated<Value>
The size of the cache item.
http_response_status_code: Annotated<Value>
The status HTTP response.
ai_pipeline_name: Annotated<Value>
The ‘name’ field of the ancestor span with op ai.pipeline.*
ai_model_id: Annotated<Value>
The Model ID of an AI pipeline, e.g., gpt-4
ai_input_messages: Annotated<Value>
The input messages to an AI model call
ai_responses: Annotated<Value>
The responses to an AI model call
thread_name: Annotated<String>
Label identifying a thread from where the span originated.
thread_id: Annotated<ThreadId>
ID of thread from where the span originated.
segment_name: Annotated<String>
Name of the segment that this span belongs to (see segment_id
).
This corresponds to the transaction name in the transaction-based model.
For INP spans, this is the route name where the interaction occurred.
ui_component_name: Annotated<Value>
Name of the UI component (e.g. React).
url_scheme: Annotated<Value>
The URL scheme, e.g. "https"
.
user: Annotated<Value>
User Display
user_email: Annotated<String>
User email address.
https://opentelemetry.io/docs/specs/semconv/attributes-registry/user/
user_full_name: Annotated<String>
User’s full name.
https://opentelemetry.io/docs/specs/semconv/attributes-registry/user/
user_geo_country_code: Annotated<String>
Two-letter country code (ISO 3166-1 alpha-2).
This is not an OTel convention (yet).
user_geo_city: Annotated<String>
Human readable city name.
This is not an OTel convention (yet).
user_geo_subdivision: Annotated<String>
Human readable subdivision name.
This is not an OTel convention (yet).
user_geo_region: Annotated<String>
Human readable region name or code.
This is not an OTel convention (yet).
user_hash: Annotated<String>
Unique user hash to correlate information for a user in anonymized form.
https://opentelemetry.io/docs/specs/semconv/attributes-registry/user/
user_id: Annotated<String>
Unique identifier of the user.
https://opentelemetry.io/docs/specs/semconv/attributes-registry/user/
user_name: Annotated<String>
Short name or login/username of the user.
https://opentelemetry.io/docs/specs/semconv/attributes-registry/user/
user_roles: Annotated<Array<String>>
Array of user roles at the time of the event.
https://opentelemetry.io/docs/specs/semconv/attributes-registry/user/
exclusive_time: Annotated<Value>
Exclusive Time
profile_id: Annotated<Value>
Profile ID
replay_id: Annotated<Value>
Replay ID
sdk_name: Annotated<String>
The sentry SDK (see crate::protocol::ClientSdkInfo
).
sdk_version: Annotated<String>
The sentry SDK version (see crate::protocol::ClientSdkInfo
).
frames_slow: Annotated<Value>
Slow Frames
frames_frozen: Annotated<Value>
Frozen Frames
frames_total: Annotated<Value>
Total Frames
frames_delay: Annotated<Value>
§messaging_destination_name: Annotated<String>
§messaging_message_retry_count: Annotated<Value>
Message Retry Count
messaging_message_receive_latency: Annotated<Value>
Message Receive Latency
messaging_message_body_size: Annotated<Value>
Message Body Size
messaging_message_id: Annotated<String>
Message ID
user_agent_original: Annotated<String>
Value of the HTTP User-Agent header sent by the client.
url_full: Annotated<String>
Absolute URL of a network resource.
client_address: Annotated<IpAddr>
The client’s IP address.
route: Annotated<Route>
The current route in the application.
Set by React Native SDK.
previous_route: Annotated<Route>
The previous route in the application
Set by React Native SDK.
lcp_element: Annotated<String>
§lcp_size: Annotated<u64>
§lcp_id: Annotated<String>
§lcp_url: Annotated<String>
§other: Object<Value>
Other fields in span.data
.