File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
opentelemetry-exporter-gcp-trace
src/opentelemetry/exporter/cloud_trace Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ package_dir=
26
26
packages =find_namespace:
27
27
install_requires =
28
28
google-cloud-trace ~= 1.1
29
- opentelemetry-api ~= 1.0
29
+ opentelemetry-api ~= 1.4
30
30
opentelemetry-sdk ~= 1.0
31
31
opentelemetry-resourcedetector-gcp >= 1.5.0dev0, == 1.*
32
32
Original file line number Diff line number Diff line change 97
97
Timestamp ,
98
98
)
99
99
from google .rpc import code_pb2 , status_pb2
100
+ from opentelemetry .attributes import BoundedAttributes
100
101
from opentelemetry .exporter .cloud_trace .environment_variables import (
101
102
OTEL_EXPORTER_GCP_TRACE_PROJECT_ID ,
102
103
OTEL_EXPORTER_GCP_TRACE_RESOURCE_REGEX ,
115
116
SpanExporter ,
116
117
SpanExportResult ,
117
118
)
118
- from opentelemetry .sdk .util import BoundedDict
119
119
from opentelemetry .trace import format_span_id , format_trace_id
120
120
from opentelemetry .trace .status import StatusCode
121
121
from opentelemetry .util import types
@@ -476,9 +476,9 @@ def _extract_attributes(
476
476
add_agent_attr : bool = False ,
477
477
) -> trace_types .Span .Attributes :
478
478
"""Convert span.attributes to dict."""
479
- attributes_dict : BoundedDict [
479
+ attributes_dict : BoundedAttributes [
480
480
str , trace_types .AttributeValue
481
- ] = BoundedDict (num_attrs_limit )
481
+ ] = BoundedAttributes (num_attrs_limit )
482
482
invalid_value_dropped_count = 0
483
483
for ot_key , ot_value in attrs .items () if attrs else []:
484
484
key = _truncate_str (ot_key , MAX_ATTR_KEY_BYTES )[0 ]
You can’t perform that action at this time.
0 commit comments