traces_spans_billing_info
Creates, updates, deletes, gets or lists a traces_spans_billing_info
resource.
Overview
Name | traces_spans_billing_info |
Type | Resource |
Id | sumologic.tracing.traces_spans_billing_info |
Fields
The following fields are returned by SELECT
queries:
- getSpanBillingInfo
Billing information of the span with the given identifier.
Name | Datatype | Description |
---|---|---|
billedBytes | integer | Number of bytes that were charged for the span. |
billedFormat | string | Billing format of the span. Number of bytes of this representation of the span is equal to billedBytes . (example: traceId=2ff9c457b1aa00f4;spanId=97872e33215c4275;parentSpanId=98bcdfc5da874c40;operation=spanId-97872e33215c4275;startTimestamp=1603283111874000000;endTimestamp=1603283112268000000;service=ServiceA;status.code=ERROR;status.message=ERROR;kind=SERVER;custom-tag-2=value2;_sourcehost=127.0.0.1;http.url=/api/operation-x;message=Some error message;_sourcecategory=Http Input;custom-tag-1=value1;error=true;_sourcename=Http Input;error.kind=InvalidInput;_collector=trace-generator-collector;http.method=GET;) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
getSpanBillingInfo | select | traceId , spanId , region | Get the billing information of the span. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
region | string | SumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2) |
spanId | string | Identifier of the span to get the billing info. |
traceId | string | Identifier of the trace the span belongs to. |
SELECT
examples
- getSpanBillingInfo
Get the billing information of the span.
SELECT
billedBytes,
billedFormat
FROM sumologic.tracing.traces_spans_billing_info
WHERE traceId = '{{ traceId }}' -- required
AND spanId = '{{ spanId }}' -- required
AND region = '{{ region }}' -- required
;