Skip to content

Commit

Permalink
chore: update charm libraries (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
observability-noctua-bot authored Mar 7, 2025
1 parent f2b4157 commit 70e1107
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
7 changes: 5 additions & 2 deletions lib/charms/tempo_coordinator_k8s/v0/charm_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ def _remove_stale_otel_sdk_packages():
SpanExportResult,
)
from opentelemetry.sdk.trace.export.in_memory_span_exporter import InMemorySpanExporter
from opentelemetry.trace import INVALID_SPAN, Tracer
from opentelemetry.trace import (
INVALID_SPAN,
Tracer,
)
from opentelemetry.trace import get_current_span as otlp_get_current_span
from opentelemetry.trace import (
get_tracer,
Expand All @@ -345,7 +348,7 @@ def _remove_stale_otel_sdk_packages():
# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version

LIBPATCH = 6
LIBPATCH = 7

PYDEPS = ["opentelemetry-exporter-otlp-proto-http==1.21.0"]

Expand Down
11 changes: 5 additions & 6 deletions lib/charms/tempo_coordinator_k8s/v0/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(self, *args):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 5
LIBPATCH = 6

PYDEPS = ["pydantic"]

Expand All @@ -129,9 +129,9 @@ def __init__(self, *args):
]

RawReceiver = Tuple[ReceiverProtocol, str]
"""Helper type. A raw receiver is defined as a tuple consisting of the protocol name, and the (external, if available),
(secured, if available) resolvable server url.
"""
# Helper type. A raw receiver is defined as a tuple consisting of the protocol name, and the (external, if available),
# (secured, if available) resolvable server url.


BUILTIN_JUJU_KEYS = {"ingress-address", "private-address", "egress-subnets"}

Expand All @@ -150,8 +150,7 @@ class TransportProtocolType(str, enum.Enum):
"jaeger_thrift_http": TransportProtocolType.http,
"jaeger_grpc": TransportProtocolType.grpc,
}
"""A mapping between telemetry protocols and their corresponding transport protocol.
"""
# A mapping between telemetry protocols and their corresponding transport protocol.


class TracingError(Exception):
Expand Down

0 comments on commit 70e1107

Please sign in to comment.