Comments (5)
I've never seen this command hang and we use it semi regularly. Could you use fmt.Println
s to determine where it was hanging?
from tempo.
@joe-elliott can you please provide an example of the above function usage? im not familiar with.
from tempo.
Some updates, i managed to get an output using additional argument --percentage 0.01
but its pretty empty of info.
Is there an option to add --percentage
param to tempo-cli query blocks
so i can try and dump those spans?
total blocks to search: 7
..0.....Number of blocks: 4
Span count: 176817
Trace size: 130369402 B
Trace duration: 111822 seconds
Root service name:
Root span info:
No root span found
top frequent service.names:
[xxxxx.Service xxxx.Service xxxx.Service xxxx.Service xxxx.Service
from tempo.
@joe-elliott can you please provide an example of the above function usage? im not familiar with.
Just place fmt.Println("foo")
anywhere in the codebase and you will see it print out when the line is hit. It can be used to get a sense of where the application is hanging. Since you are running the cli directly from source go run ./cmd/tempo-cli
it's quite easy.
Some updates, i managed to get an output using additional argument --percentage 0.01 but its pretty empty of info.
Scanning 1% of your total blocks you found 176K spans and 130MB of trace data. The cli is likely hanging b/c this trace is enormous. If trace summary
isn't returning then query blocks
definitely won't. This suggests that your trace is 17M spans and 13GB.
Is there an option to add --percentage param to tempo-cli query blocks so i can try and dump those spans?
Sure, give it a shot. Here is the code that restricts to a %age of blocks:
https://github.com/grafana/tempo/blob/main/cmd/tempo-cli/cmd-query-trace-summary.go#L95-L103
You could copy that into the query blocks code here:
https://github.com/grafana/tempo/blob/main/cmd/tempo-cli/cmd-query-blocks.go#L86
from tempo.
Thank you @joe-elliott
I'll raise a PR with those changes since its really useful to have this limit in place.
from tempo.
Related Issues (20)
- User-configurable overrides api Documentation HOT 1
- Need a way to stop tempo from using dual stack urls for s3 backend HOT 13
- metrics-generator stops working HOT 2
- Search query TraceQL is truncated to 1024 characters HOT 2
- S3 Not Reusing Connections HOT 3
- Add querier metrics for requests executed metric to tempo operational dashboard HOT 1
- Tempo (v2.5.0) Distributor missing tempo_receiver_accepted_spans HOT 3
- The number of live traces spikes on one ingester HOT 4
- Streaming gRPC does not avoid 'message larger than max' error HOT 4
- Timeout & cache on metrics generator local-blocks processor HOT 9
- Create a configurable list of TraceQL queries that are immediately 400'ed HOT 3
- Unable to get Service list within time range even if 'start' and 'end' parameters are sent HOT 2
- Add Audit Logs to the User Configurable API HOT 5
- Multiple root spans and orphaned spans being combined into a single trace HOT 4
- Same queries result in different results HOT 2
- Filters not working for Span Name HOT 4
- Add ingestion metrics to anonymous usage reporting HOT 1
- Document timerange limit on TraceQL metrics HOT 2
- TraceQL query '{}' does not return all spans HOT 5
- Overrides Configuration Is Not Working HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tempo.