Skip to content

Add core tracing supportability metrics #3579

@bizob2828

Description

@bizob2828

Description

In order to measure which samplers are configured for a given context and which partial granularity type is being used, we need to add the following supportability metrics:

Note: Supportability/<language>/PartialGranularity/<type> should be set where we set the Supportability/DistributedTrace/PartialGranularity/<partial granularity type>/Span/Instrumented and Supportability/DistributedTrace/PartialGranularity/<partial granularity type>/Span/Kept where as the others should be sent once per connect(more explicitly where the config parsed at start up)

Metric Create if
Supportability/<language>/PartialGranularity/<type> Sent once per transaction harvest. This MUST be sent when partial granularity is enabled. The pipeline will add a tag to the entity when this metric is sent so the DT UI can indicate partial granularity tracing is on.
Supportability/<language>/FullGranularity/Root/<sampler-type> Sent once per connect cycle IF full granularity is enabled. The full granularity root sampler in use. is one of AlwaysOn, AlwaysOff, TraceIdRatioBased, Adaptive, or Adaptive/Shared. Use Adaptive/Shared IF this sampler is the shared (global) adaptive sampler.
Supportability/<language>/FullGranularity/RemoteParentSampled/<sampler-type> Sent once per connect cycle IF full granularity is enabled. The full granularity remote_parent_sampled sampler in use. as above.
Supportability/<language>/FullGranularity/RemoteParentNotSampled/<sampler-type> Sent once per connect cycle IF full granularity is enabled. The full granularity remote_parent_not_sampled sampler in use. as above.
Supportability/<language>/PartialGranularity/Root/<sampler-type> Sent once per connect cycle IF partial granularity is enabled. The partial granularity root sampler in use. as above.
Supportability/<language>/PartialGranularity/RemoteParentSampled/<sampler-type> Sent once per connect cycle IF partial granularity is enabled. The partial granularity remote_parent_sampled sampler in use. as above.
Supportability/<language>/PartialGranularity/RemoteParentNotSampled/<sampler-type> Sent once per connect cycle IF partial granularity is enabled. The partial granularity remote_parent_not_sampled sampler in use. as above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do: In current sprint

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions