question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When adding a label, the Span does not get sent

See original GitHub issue

Description 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:closed
  • Created 3 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SteveDunncommented, Oct 20, 2020

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

1reaction
gregkalaposcommented, Oct 19, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found