Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl --request POST -H 'Content-Type: application/json' http://localhost:4318/v1/traces --data-raw \
- '{
- "resourceSpans": [
- {
- "resource": {
- "attributes": [
- {
- "key": "service.name",
- "value": {
- "stringValue": "my.service"
- }
- }
- ]
- },
- "scopeSpans": [
- {
- "scope": {
- "name": "my.library",
- "version": "1.0.0",
- "attributes": [
- {
- "key": "my.scope.attribute",
- "value": {
- "stringValue": "some scope attribute"
- }
- }
- ]
- },
- "spans": [
- {
- "traceId": "5B8EFFF798038103D269B633813FC60C",
- "spanId": "EEE19B7EC3C1B174",
- "parentSpanId": "EEE19B7EC3C1B173",
- "name": "Im a server span",
- "startTimeUnixNano": 1685262925000000000,
- "endTimeUnixNano": 1685262925500000000,
- "kind": 2,
- "attributes": [
- {
- "key": "my.span.attr",
- "value": {
- "stringValue": "some value"
- }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement