@emeryld/obs-stack 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,13 +25,13 @@ processors:
|
|
|
25
25
|
- context: log
|
|
26
26
|
statements:
|
|
27
27
|
# If body is scalar, wrap it in a map
|
|
28
|
-
- set(body, {"message": body}) where IsString(body) or IsNumeric(body) or IsBool(body)
|
|
28
|
+
- 'set(body, {"message": body}) where IsString(body) or IsNumeric(body) or IsBool(body)'
|
|
29
29
|
|
|
30
30
|
# Merge log attributes into the body so Grafana can parse them as fields
|
|
31
|
-
- merge_maps(body, attributes)
|
|
31
|
+
- 'merge_maps(body, attributes)'
|
|
32
32
|
|
|
33
33
|
# Merge resource attributes too (service_name/environment/etc.)
|
|
34
|
-
- merge_maps(body, resource.attributes)
|
|
34
|
+
- 'merge_maps(body, resource.attributes)'
|
|
35
35
|
|
|
36
36
|
# Only label low-cardinality fields for Loki.
|
|
37
37
|
# Numeric/high-cardinality fields (durationMs, trace_id, span_id, ids, etc.)
|