otel-utils 0.3.0__tar.gz → 0.4.0__tar.gz

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.

Potentially problematic release.


This version of otel-utils might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: otel-utils
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Utilidades simplificadas para instrumentación con OpenTelemetry
5
5
  License: Proprietary
6
6
  Author: Harold Portocarrero
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "otel-utils"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  description = "Utilidades simplificadas para instrumentación con OpenTelemetry"
5
5
  authors = ["Harold Portocarrero <harold@getcometa.com>"]
6
6
  readme = "README.md"
@@ -103,6 +103,8 @@ class StructuredLogger:
103
103
  if trace_ctx and not hasattr(logging.getLogRecordFactory(), "otelTraceID"):
104
104
  extra_data["trace_id"] = trace_ctx.get("trace_id")
105
105
  extra_data["span_id"] = trace_ctx.get("span_id")
106
+ extra_data["dd.trace_id"] = trace_ctx.get("span_id")
107
+ extra_data["dd.span_id"] = trace_ctx.get("span_id")
106
108
 
107
109
  self.logger.log(level, message, extra=extra_data)
108
110
 
File without changes