Advertisement
cetex

Untitled

May 28th, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. curl --request POST -H 'Content-Type: application/json' http://localhost:4318/v1/traces --data-raw \
  2. '{
  3. "resourceSpans": [
  4. {
  5. "resource": {
  6. "attributes": [
  7. {
  8. "key": "service.name",
  9. "value": {
  10. "stringValue": "my.service"
  11. }
  12. }
  13. ]
  14. },
  15. "scopeSpans": [
  16. {
  17. "scope": {
  18. "name": "my.library",
  19. "version": "1.0.0",
  20. "attributes": [
  21. {
  22. "key": "my.scope.attribute",
  23. "value": {
  24. "stringValue": "some scope attribute"
  25. }
  26. }
  27. ]
  28. },
  29. "spans": [
  30. {
  31. "traceId": "5B8EFFF798038103D269B633813FC60C",
  32. "spanId": "EEE19B7EC3C1B174",
  33. "parentSpanId": "EEE19B7EC3C1B173",
  34. "name": "Im a server span",
  35. "startTimeUnixNano": 1685262925000000000,
  36. "endTimeUnixNano": 1685262925500000000,
  37. "kind": 2,
  38. "attributes": [
  39. {
  40. "key": "my.span.attr",
  41. "value": {
  42. "stringValue": "some value"
  43. }
  44. }
  45. ]
  46. }
  47. ]
  48. }
  49. ]
  50. }
  51. ]
  52. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement