Accessing a span
- Python
- Go (golang)
When customizing the trace or span, first import the OpenTelemetry trace module in the file you want to customize the reported trace data.Using that trace module, create a new span:Or fetch the current active one:
AppSignal attributes
Namespace
- Attribute name:
appsignal.namespace - Value type:
String
<Service name>/<Namespace>, e.g. “Web server/admin” or “Background worker/billing”. This attribute allows you to configure the namespace part only. The default namespace for all traces is <Service name>/default.
Root action name
- Attribute name:
appsignal.action_name - Value type:
String
Tags
- Attribute name:
appsignal.tag.<tag_name> - Value type:
String
appsignal.tag prefix, and the tag key. For the tag user_id, this becomes appsignal.tag.user_id as an attribute key.
Function parameters
- Attribute name:
appsignal.function.parameters - Value type: JSON serialized object
appsignal.config.filter_function_parameters config option.
Response headers
- Attribute name:
http.response.header.<key> - Value type: Array of Strings
Request headers
- Attribute name:
http.request.header.<key> - Value type: Array of Strings
Request query parameters
- Attribute name:
appsignal.request.query_parameters - Value type: JSON serialized object
appsignal.config.filter_request_query_parameters config option.
Request payload
- Attribute name:
appsignal.request.payload - Value type: JSON serialized object
appsignal.config.filter_request_payload config option.
Request session data
- Attribute name:
appsignal.request.session_data - Value type: JSON serialized object
appsignal.config.filter_request_session_data config option.