Span type clarification

Hello,

I’ve been testing Elastic APM with OpenTelemetry and I’ve noticed that some of my spans are showing up as having type “unknown”.

I tried to set the “span.type” to “app”, but it seems that I cannot set this span attribute. I read in some other threads that the “span.type” is handled automatically based on the existance of other attributes (e.g. “db.” attributes). Is this true?

My span is a custom span for business logic so it would be nice to have the type be “app” or “application”. Is there a way to have the span show up as that type? Is there some attribute I can add to my span to have this work?

Greetings,

Albert

I tried to set the “span.type” to “app”, but it seems that I cannot set this span attribute.

What problems are you having setting the attribute?

I tried it with the JS SDK and I’m seeing it in APM:

tracer.startActiveSpan("count to a million", (span) => {

span.setAttribute("span.type", "app");
```