Skip to main content

traces_spans_billing_info

Creates, updates, deletes, gets or lists a traces_spans_billing_info resource.

Overview

Nametraces_spans_billing_info
TypeResource
Idsumologic.tracing.traces_spans_billing_info

Fields

The following fields are returned by SELECT queries:

Billing information of the span with the given identifier.

NameDatatypeDescription
billedBytesintegerNumber of bytes that were charged for the span.
billedFormatstringBilling 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:

NameAccessible byRequired ParamsOptional ParamsDescription
getSpanBillingInfoselecttraceId, spanId, regionGet 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.

NameDatatypeDescription
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)
spanIdstringIdentifier of the span to get the billing info.
traceIdstringIdentifier of the trace the span belongs to.

SELECT examples

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
;