otel-utils 0.1.14__tar.gz → 0.1.16__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.1.14
3
+ Version: 0.1.16
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.1.14"
3
+ version = "0.1.16"
4
4
  description = "Utilidades simplificadas para instrumentación con OpenTelemetry"
5
5
  authors = ["Harold Portocarrero <harold@getcometa.com>"]
6
6
  readme = "README.md"
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  import platform
3
3
  from contextlib import contextmanager
4
+ from datetime import datetime
4
5
  from typing import Any, Dict, Optional
5
6
 
6
7
  from opentelemetry import trace
@@ -49,8 +50,7 @@ class StructuredLogger:
49
50
  **self.default_attributes,
50
51
  "timestamp": datetime.utcnow().isoformat(),
51
52
  "severity": logging.getLevelName(level),
52
- "logger.name": self.logger.name,
53
- **trace_context
53
+ "logger.name": self.logger.name
54
54
  }
55
55
 
56
56
  additional_info = []
@@ -82,8 +82,6 @@ class StructuredLogger:
82
82
  "structured": True,
83
83
  "otel.name": "log",
84
84
  "otel.kind": "event",
85
- "otelTraceID": trace_context.get("trace_id", ""),
86
- "otelSpanID": trace_context.get("span_id", ""),
87
85
  **log_attributes
88
86
  }
89
87
  )
File without changes