This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch feature/swip-10-envoy-ai-gateway
in repository https://gitbox.apache.org/repos/asf/skywalking.git

commit 2d3a6d5baa9cc4744fe5dd61c2ea701b434496fe
Author: Wu Sheng <[email protected]>
AuthorDate: Tue Mar 31 14:23:21 2026 +0800

    Remove service.name to job_name fallback mapping
    
    The service.name → job_name mapping in OTLP metric receiver was added
    for AWS Firehose (commit 29556a0d) but AWS rules filter by Namespace,
    not job_name. No existing integration uses this mapping.
    
    Removing it ensures service.name is preserved as service_name tag
    (via dot-to-underscore conversion), available for MAL expSuffix.
    Integrations that need job_name should set it explicitly.
    
    Remaining fallback mappings (all used by Prometheus-based integrations):
    - job → job_name
    - net.host.name → node_identifier_host_name
    - host.name → node_identifier_host_name
    
    MAL checker: 1268/1268 rules pass.
---
 .../receiver/otel/otlp/OpenTelemetryMetricRequestProcessor.java      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/oap-server/server-receiver-plugin/otel-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/otel/otlp/OpenTelemetryMetricRequestProcessor.java
 
b/oap-server/server-receiver-plugin/otel-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/otel/otlp/OpenTelemetryMetricRequestProcessor.java
index 315892fb05..88b4d27bab 100644
--- 
a/oap-server/server-receiver-plugin/otel-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/otel/otlp/OpenTelemetryMetricRequestProcessor.java
+++ 
b/oap-server/server-receiver-plugin/otel-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/otel/otlp/OpenTelemetryMetricRequestProcessor.java
@@ -72,8 +72,8 @@ public class OpenTelemetryMetricRequestProcessor implements 
Service {
 
     /**
      * Fallback label mappings: if the target label (value) is absent in 
resource attributes,
-     * copy the source label (key) as the target. The source label is always 
kept as-is.
-     * For example, if "job_name" is not present, "service.name" value is 
copied as "job_name".
+     * copy the source label (key) value as the target. The source label is 
always kept as-is
+     * (with dots converted to underscores by the first pass).
      */
     private static final Map<String, String> FALLBACK_LABEL_MAPPINGS =
         ImmutableMap
@@ -81,7 +81,6 @@ public class OpenTelemetryMetricRequestProcessor implements 
Service {
             .put("net.host.name", "node_identifier_host_name")
             .put("host.name", "node_identifier_host_name")
             .put("job", "job_name")
-            .put("service.name", "job_name")
             .build();
     private List<MetricConvert> converters;
 

Reply via email to