Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fixing TagValues for int value

Ankit Nayanc323068362d9
diff --git a/pkg/processors/flattener/main.go b/pkg/processors/flattener/main.go
index 0e974ba2de..170f4b0c5f 100644
--- a/pkg/processors/flattener/main.go
+++ b/pkg/processors/flattener/main.go
@@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"os"
+ "strconv"
"gitlab.com/signoz-public/goka"
sp "gitlab.com/signoz-public/spanprocessor"
@@ -252,13 +253,15 @@ func newStructuredSpan(otelSpan pdata.Span, ServiceName string) *Span {
attributes.ForEach(func(k string, v pdata.AttributeValue) {
if v.Type().String() == "INT" {
tag = fmt.Sprintf("%s:%d", k, v.IntVal())
+ tagsValues = append(tagsValues, strconv.FormatInt(v.IntVal(), 10))
} else {
tag = fmt.Sprintf("%s:%s", k, v.StringVal())
+ tagsValues = append(tagsValues, v.StringVal())
}
tags = append(tags, tag)
tagsKeys = append(tagsKeys, k)
- tagsValues = append(tagsValues, v.StringVal())
+
})
references, _ := makeJaegerProtoReferences(otelSpan.Links(), otelSpan.ParentSpanID(), otelSpan.TraceID())