mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 10:42:39 +00:00
clarify the issue in comments
This commit is contained in:
parent
d0c48d8397
commit
cafe9cbb4a
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ class TelemetryAdapter(TelemetryDatasetMixin, Telemetry):
|
|||
# Initialize the correct span processor based on the provider state.
|
||||
# This is needed since once the span processor is set, it cannot be unset.
|
||||
# Recreating the telemetry adapter multiple times will result in duplicate span processors.
|
||||
# Since the library client can be recreated multiple times in a notebook,
|
||||
# the kernel will hold on to the span processor and cause duplicate spans to be written.
|
||||
if _TRACER_PROVIDER is None:
|
||||
provider = TracerProvider(resource=resource)
|
||||
trace.set_tracer_provider(provider)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue