11 Jul 2023 08:47 AM - last edited on 20 Jul 2023 07:53 AM by Radoslaw_Szulgo
Hi team
We use span attributes to add a lot of data needed to debug, but we cannot filter them directly and we need to create request attributes,
the point here is that we have this span attributes now but not mapped as request attributes, is there any way to create request attributes for old requests (or to filter by span attribute directly)
Thanks!
Solved! Go to Solution.
11 Jul 2023 09:03 AM
Hi,
Have you tried using multidimensional analysis and using the "Span Name" filter?
Radek
11 Jul 2023 09:42 AM
I'm trying it but I haven't set span names, or i don't see them in any span in a trace metadata, but, this is just a name of the unit of work isn't it? not a concrete value of it
What I want is to filter, for example, by IOS, cartId, userId, tenant, promotionalCode, all together, to check what was happened with this filters
11 Jul 2023 09:50 AM
I would like to clarify something...do you have the span capture set up on the DT side? Can you send a screen of your configuration?
11 Jul 2023 10:01 AM
Span capturing is empty, we are using opentelemetry to instrumentalise our application and oneagent is capturing and publishing them, sorry I'm new with dynatrace, let me know if this answers your question
"All detected OpenTelemetry and OpenTracing spans are captured by default. This means that every detected span is added to distributed traces. This gives code-level visibility along with span attributes, even for technologies not supported by OneAgent out of the box.
You can create Request Attributes based on spans to segment the distributed traces."
11 Jul 2023 10:02 AM
Hello,
You can simply create request attributes based on the span attribute as below, so then you can filter with them.
Thanks,
Islam
11 Jul 2023 10:11 AM
You can do exactly as @islam_zidan wrote.
In addition, you can configure Span Capture: https://www.dynatrace.com/support/help/shortlink/span-settings#span-capture
Try it and let us know.
11 Jul 2023 10:34 AM
The main question is basically how to do that to requests older than the time I've set that attribute 😞
11 Jul 2023 10:36 AM
Unfortunately, you will not have data visibility before setting RA. Only all new data coming from transactions will be properly metered.
11 Jul 2023 10:57 AM
Unfortunately, you can't get the history back before creating the request attribute.
18 Aug 2023 04:18 PM
Hello,
I have a similar situation where dev is setting some metadata via SPAN attributes , whicd show up on the distributed traces as "Value not stored". The tool tip on hovering over this shows the following message :
"The attribute value is not configured to be stored. You can configure it in the traceview for future traces"
The How do I set this TraceView configuration ? Can anybody help ?
thanks
Venkat