Skip to content

Commit 18e8fc2

Browse files
committed
fix typing
1 parent baed486 commit 18e8fc2

File tree

1 file changed

+2
-2
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai

1 file changed

+2
-2
lines changed

instrumentation-genai/opentelemetry-instrumentation-vertexai/src/opentelemetry/instrumentation/vertexai/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ def is_content_enabled() -> bool:
131131
return capture_content.lower() == "true"
132132

133133

134-
def get_span_name(span_attributes: Mapping[str, AttributeValue]):
134+
def get_span_name(span_attributes: Mapping[str, AttributeValue]) -> str:
135135
name = span_attributes[GenAIAttributes.GEN_AI_OPERATION_NAME]
136136
model = span_attributes[GenAIAttributes.GEN_AI_REQUEST_MODEL]
137137
if not model:
138-
return name
138+
return f"{name}"
139139
return f"{name} {model}"

0 commit comments

Comments
 (0)