Slackbot
05/02/2023, 2:39 PMAnkit Nayan
is it possible to show only traces in the traces viewThis is upcoming in a month. We are launching a new explorer page with that option
is it possible to exclude certain routes, as I have healthcheck route which is triggered every few seconds and unnecessarily bloats the viewshould be possible. @Srikanth Chekuri can you help?
Aleksandar Babic
05/02/2023, 3:36 PMAnkit Nayan
which makes it a bit hard for me to find the information that I needWhat data that you need to view for traces and not spans? Would be helpful to understand. @Aleksandar Babic
Aleksandar Babic
05/02/2023, 3:37 PM/trace , so when needed I can see only the traces without the spans, and then when I want to see spans of the specific trace I click on it to open the detailed view (trace details page)Ankit Nayan
Srikanth Chekuri
05/02/2023, 4:11 PMAleksandar Babic
05/02/2023, 4:11 PMSrikanth Chekuri
05/02/2023, 4:12 PMso when needed I can see only the traces without the spansby this do you mean root span? since trace is really a bunch of spans.
Aleksandar Babic
05/02/2023, 4:13 PMAleksandar Babic
05/02/2023, 4:27 PM/ route, and I’m not sure which value should I set to exclude only that URL and not any other. With value OTEL_PYTHON_EXCLUDED_URLS=/ It excludes all root spans for all urlsVishal Sharma
05/02/2023, 4:31 PM^/$
It should only match / routeAleksandar Babic
05/02/2023, 4:47 PMVishal Sharma
05/02/2023, 4:57 PM^/$ is regex to match only /
Can you set OTEL_PYTHON_FASTAPI_EXCLUDED_URLS="^/$"Vishal Sharma
05/02/2023, 4:58 PMAleksandar Babic
05/02/2023, 5:01 PMOTEL_PYTHON_FASTAPI_EXCLUDED_URLS in a few minutes. One thing that crossed my mind from https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/fastapi/fastapi.html#exclude-lists - it seems like they are not including the trailing slashes in the values, for example they wrote that in order to exclude /healthcheck route you need to set value OTEL_PYTHON_FASTAPI_EXCLUDED_URLS=healtcheck which does not include the / , could that be the problem?Aleksandar Babic
05/02/2023, 5:24 PMOTEL_PYTHON_FASTAPI_EXCLUDED_URLS behaving exactly the sameSrikanth Chekuri
05/02/2023, 5:42 PM/healthz or /healthcheck and exclude it instead of the root URL.Aleksandar Babic
05/02/2023, 5:47 PMAleksandar Babic
05/02/2023, 8:50 PM^(https?://)?[^/]+(/)?$
The regex ^/$ would have worked if the url that was passed to the validation function was only relative (/), but instead its the full URL (<http://server>:port/) and requires the above regex in order to properly filter out the / URL.
Thanks for the guidance, much appreciated! I love Signoz and will start using it in prod very soon!