Dynatrace Managed Q&A
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

Couchbase OpenTelemetry spans as separate service/endpoints in Dynatrace Managed

Osiris5654
Participant

Hi all,

We are monitoring Couchbase calls with OpenTelemetry and we can see the Couchbase spans and attributes inside distributed traces.

Our goal is to group these Couchbase spans and display them as a separate endpoint, service, or database-like entity instead of checking them only under each Java trace.

Is there any supported way to achieve this in Dynatrace Managed, for example with service detection rules, API detection rules, span attributes, request attributes, or OneAgent SDK?

Thanks.

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

@Osiris5654, yes, to some degree, this is possible with the service detection v2. You need to set up a service detection rule which will match the spans you want, and then it will automatically create a new service from those spans. However, I see two caveats:

  • Be sure to have all the attributes you are matching on in all the spans you want to move.
  • You have only client spans in your screenshot, you cannot rewrite the span kind in Managed (OTEL collector can do that if you are unable to do it on your own). I'm not sure if your service metrics will be calculated as afaik those are created from server span kind.  

Since the application calling Couchbase seems to be monitored by OneAgent, I think creating a custom service at the classes/methods calling Couchbase will be much easier to set up, and a dedicated service will be created.

Dynatrace Ambassador | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts