opentelemetry-instrumentation-vertexai 0.46.1__py3-none-any.whl → 0.46.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of opentelemetry-instrumentation-vertexai might be problematic. Click here for more details.

@@ -214,6 +214,11 @@ async def set_input_attributes(span, args):
214
214
  processed_content = await _process_vertexai_argument(argument, span)
215
215
 
216
216
  if processed_content:
217
+ _set_span_attribute(
218
+ span,
219
+ f"{SpanAttributes.LLM_PROMPTS}.{arg_index}.role",
220
+ "user"
221
+ )
217
222
  _set_span_attribute(
218
223
  span,
219
224
  f"{SpanAttributes.LLM_PROMPTS}.{arg_index}.content",
@@ -233,6 +238,11 @@ def set_input_attributes_sync(span, args):
233
238
  processed_content = _process_vertexai_argument_sync(argument, span)
234
239
 
235
240
  if processed_content:
241
+ _set_span_attribute(
242
+ span,
243
+ f"{SpanAttributes.LLM_PROMPTS}.{arg_index}.role",
244
+ "user"
245
+ )
236
246
  _set_span_attribute(
237
247
  span,
238
248
  f"{SpanAttributes.LLM_PROMPTS}.{arg_index}.content",
@@ -1 +1 @@
1
- __version__ = "0.46.1"
1
+ __version__ = "0.46.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: opentelemetry-instrumentation-vertexai
3
- Version: 0.46.1
3
+ Version: 0.46.2
4
4
  Summary: OpenTelemetry Vertex AI instrumentation
5
5
  License: Apache-2.0
6
6
  Author: Gal Kleinman
@@ -2,10 +2,10 @@ opentelemetry/instrumentation/vertexai/__init__.py,sha256=c3EtiFxN8F27o4hSHktd1X
2
2
  opentelemetry/instrumentation/vertexai/config.py,sha256=LDyIH2dNsQsyFGy3otuvLWnRwf1hT_ivncioMPW8_ks,241
3
3
  opentelemetry/instrumentation/vertexai/event_emitter.py,sha256=v-f7-oWbLi1IcRjpsoPst0XhocqCKvaEovc_0Er0PDo,5043
4
4
  opentelemetry/instrumentation/vertexai/event_models.py,sha256=PCfCGxrrArwZqR-4wFcXrhwQq0sBMAxmSrpC4PUMtaM,876
5
- opentelemetry/instrumentation/vertexai/span_utils.py,sha256=zg0wrONTjp9UZ8876LTtcS6nNanzqFIToXYZ_vP8aiI,10547
5
+ opentelemetry/instrumentation/vertexai/span_utils.py,sha256=yRulZKuISbA0qugos16MD-pALx7MpXJzDMy0bswx5x4,10903
6
6
  opentelemetry/instrumentation/vertexai/utils.py,sha256=Rj-TT_GQFhfi1F1rugvDRFxl4Xo4D-rOYJojOK8iblI,1172
7
- opentelemetry/instrumentation/vertexai/version.py,sha256=mFmwJPEwG1jNjQaGSh3_xNo8JgOV3wGtKGQxe0qvmTo,23
8
- opentelemetry_instrumentation_vertexai-0.46.1.dist-info/METADATA,sha256=SUBNEz9q7BFI_70whPhGBh25nkzTfu3Fs6JHsaXM2tc,2190
9
- opentelemetry_instrumentation_vertexai-0.46.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
10
- opentelemetry_instrumentation_vertexai-0.46.1.dist-info/entry_points.txt,sha256=HbacwtKx_31YuUruZKYKWOiTGnRw3YaazUKF3TPbzDc,114
11
- opentelemetry_instrumentation_vertexai-0.46.1.dist-info/RECORD,,
7
+ opentelemetry/instrumentation/vertexai/version.py,sha256=lWEdbG8IshPF1zUeQxPyfsi3uFhuXQmN7phOE5OaeI8,23
8
+ opentelemetry_instrumentation_vertexai-0.46.2.dist-info/METADATA,sha256=FtpxND9hIsO9loUi4njdGO1DMQQh4jHE5ZZLoARvBI4,2190
9
+ opentelemetry_instrumentation_vertexai-0.46.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
10
+ opentelemetry_instrumentation_vertexai-0.46.2.dist-info/entry_points.txt,sha256=HbacwtKx_31YuUruZKYKWOiTGnRw3YaazUKF3TPbzDc,114
11
+ opentelemetry_instrumentation_vertexai-0.46.2.dist-info/RECORD,,