Jan Høydahl created SOLR-18638:
----------------------------------

             Summary: cross-dc-manager pushes OTLP metrics as 
unknown_service:java
                 Key: SOLR-18638
                 URL: https://issues.apache.org/jira/browse/SOLR-18638
             Project: Solr
          Issue Type: Bug
          Components: module - crossDC, metrics
            Reporter: Jan Høydahl


{{OtelMetrics.register()}} builds {{new SolrMetricManager(new 
OtlpExporterFactory().getExporter())}} without calling 
{{OpenTelemetryConfigurator.initializeOpenTelemetrySdk}}, so its meter 
providers fall back to {{Resource.getDefault()}}.

Pushed metrics therefore carry {{service.name="unknown_service:java"}} and no 
{{service.instance.id}}, so a collector cannot tell one cross-DC manager from 
another. This is the same defect SOLR-18594 fixed for Solr nodes.

It is not a Solr node, so the {{host:port}} node defaults do not apply. It 
wants its own resource, for example {{service.name=solr\-crossdc}} plus 
{{host.name}}, honouring {{OTEL_SERVICE_NAME}} and {{OTEL_RESOURCE_ATTRIBUTES}} 
like everything else.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to