Skip to content

Commit

Permalink
fix: Removed unused method and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed Oct 23, 2023
1 parent e762178 commit 75683c6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions chromadb/telemetry/opentelemetry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from functools import wraps
from enum import Enum
from typing import Any, Callable, Dict, Optional, Sequence, Union, cast
from typing import Any, Callable, Dict, Optional, Sequence, Union

from opentelemetry import trace
from opentelemetry.util import types
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import (
Expand Down Expand Up @@ -62,13 +61,6 @@ def __init__(self, system: System):
granularity: OpenTelemetryGranularity = OpenTelemetryGranularity("none")


def _transform_attributes(
attributes: Dict[str, Any]
) -> Dict[str, types.AttributeValue]:
"""Transform attributes to the format expected by OpenTelemetry."""
return {k: cast(types.AttributeValue, v) for k, v in attributes.items()}


def otel_init(
otel_service_name: Optional[str],
otel_collection_endpoint: Optional[str],
Expand Down

0 comments on commit 75683c6

Please sign in to comment.