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=
2626packages =find_namespace:
2727install_requires =
2828 google-cloud-trace ~= 1.1
29- opentelemetry-api ~= 1.0
29+ opentelemetry-api ~= 1.4
3030 opentelemetry-sdk ~= 1.0
3131 opentelemetry-resourcedetector-gcp >= 1.5.0dev0, == 1.*
3232
Original file line number Diff line number Diff line change 9797 Timestamp ,
9898)
9999from google .rpc import code_pb2 , status_pb2
100+ from opentelemetry .attributes import BoundedAttributes
100101from opentelemetry .exporter .cloud_trace .environment_variables import (
101102 OTEL_EXPORTER_GCP_TRACE_PROJECT_ID ,
102103 OTEL_EXPORTER_GCP_TRACE_RESOURCE_REGEX ,
115116 SpanExporter ,
116117 SpanExportResult ,
117118)
118- from opentelemetry .sdk .util import BoundedDict
119119from opentelemetry .trace import format_span_id , format_trace_id
120120from opentelemetry .trace .status import StatusCode
121121from opentelemetry .util import types
@@ -476,9 +476,9 @@ def _extract_attributes(
476476 add_agent_attr : bool = False ,
477477) -> trace_types .Span .Attributes :
478478 """Convert span.attributes to dict."""
479- attributes_dict : BoundedDict [
479+ attributes_dict : BoundedAttributes [
480480 str , trace_types .AttributeValue
481- ] = BoundedDict (num_attrs_limit )
481+ ] = BoundedAttributes (num_attrs_limit )
482482 invalid_value_dropped_count = 0
483483 for ot_key , ot_value in attrs .items () if attrs else []:
484484 key = _truncate_str (ot_key , MAX_ATTR_KEY_BYTES )[0 ]
You can’t perform that action at this time.
0 commit comments