Skip to content

Commit 4310e63

Browse files
committed
respond to comments
1 parent 7f4f596 commit 4310e63

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

instrumentation/opentelemetry-instrumentation-botocore/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.13",
2626
]
2727
dependencies = [
28-
"opentelemetry-api ~= 1.37",
28+
"opentelemetry-api >= 1.37",
2929
"opentelemetry-instrumentation == 0.59b0.dev",
3030
"opentelemetry-semantic-conventions == 0.59b0.dev",
3131
"opentelemetry-propagator-aws-xray ~= 1.0",

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,7 @@ def _converse_on_success(
506506
# this path is used by streaming apis, in that case we are already out of the span
507507
# context so need to add the span context manually
508508
span_ctx = span.get_span_context()
509-
logger.emit(
510-
choice.to_choice_event(
511-
trace_id=span_ctx.trace_id,
512-
span_id=span_ctx.span_id,
513-
trace_flags=span_ctx.trace_flags,
514-
)
515-
)
509+
logger.emit(choice.to_choice_event(context=span_ctx))
516510

517511
metrics = instrumentor_context.metrics
518512
metrics_attributes = self._extract_metrics_attributes()

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/extensions/bedrock_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,5 +627,4 @@ def to_choice_event(self, **event_kwargs) -> LogRecord:
627627
attributes=attributes,
628628
body=self._to_body_dict(),
629629
**event_kwargs,
630-
context=get_current(),
631630
)

0 commit comments

Comments
 (0)