Tempo query by date

Hello,

Does anyone have an idea why I can’t query Tempo traces by dates ?

  • I can query by traceID : curl ‘http://[…]/api/traces/5B8EFFF798038103D269B633813FC700’
    {“batches”:[{“resource”:{“attributes”:[{“key”:“service.name”,“value”:{“stringValue”:“service-1”}}]},“scopeSpans”:[{“scope”:{“name”:“span-scope”,“version”:“1”},“spans”:[{“traceId”:“W47/95gDgQPSabYzgT/HAA==”,“spanId”:“7uGbfsPBsQA=”,“name”:“post_handler”,“kind”:“SPAN_KIND_SERVER”,“startTimeUnixNano”:“1698357600000000000”,“endTimeUnixNano”:"169835772000000[…]

  • I can query by tag : curl ‘http://[…]/api/search?tags=%20service.name%3D%22service-1%22%20name%3D%22post_handler%22&limit=20’
    {“traces”:[{“traceID”:“5b8efff798038103d269b633813fc700”,“rootServiceName”:“service-1”,[…]

  • But I am not able to query by date : curl ‘http://[…]/api/search?tags=%20service.name%3D%22service-1%22%20name%3D%22post_handler%22&limit=20&start=1697875936&end=1698480736’
    {“traces”:,“metrics”:{}}%

Thanks in advance

The error came from my use of the HTTP API for the tests. Using python instrumentation, no more problems.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.