When adding a label, the Span does not get sent
See original GitHub issueDescription
When I add an entry to the Labels
field inside the Span
, then the whole span is not sent.
To Reproduce I have the following code that wraps creating a span and adding a label:
public class LogPerformance : ILogPerformance
{
public T CaptureSpan<T>(Func<T> func)
{
return Elastic.Apm.Agent.Tracer.CurrentTransaction.CaptureSpan(
"spanName",
"spanType",
span =>
{
span.Labels["foo"] = "bar";
return func();
},
"spanSubType");
}
I expect to see the Span
arrive in Kibana with that label, but it never arrives.
If I remove span.Labels["foo"] = "bar";
, then there is no problem and it arrives.
No obvious exception or error message is observed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (7 by maintainers)
Top Results From Across the Web
Label span tag is not working properly in chrome
For the navigation to work good in mobile, I have added below code. the navigation works fine. but the label in the menu...
Read more >Can/Should I Label an informational span for screen ...
No. The label element is meant for labeling controls (form fields), and for them, it has support in user agents and in assistive...
Read more >The Label element - HTML: HyperText Markup Language | MDN
The label text is not only visually associated with its corresponding text input; it is programmatically associated with it too. · When a...
Read more >HTML Inputs and Labels: A Love Story
What goes in a label · Describe its companion input. A label wants to show everyone that it belongs with its input partner....
Read more >Label - .NET MAUI
NET MAUI) Label displays single-line and multi-line text. Text displayed by a Label can be colored, spaced, and can have text decorations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think so @gregkalapos . Thank you very much for your help. We’ll be in touch if there are any related issues that we discover.
Regards,
Steve
@fenneh thanks for the update - sounds good.
I can’t give you any explanation on how it’s come about, but your explanation sounds reasonable.
Let me know if you managed to fix the issue.
From the agent’s point of view I’d say there is nothing to do, but if you need help we can transfer the issue to the APM Server team.