Skip to content

OpenTelemetry Error Overriding of current TracerProvider is not allowed #330

Description

@RevathyRamalingam

Course

llm-zoomcamp

Question

How to resolve OpenTelemetry Error "Overriding of current TracerProvider is not allowed"?

Answer

In homework when you change ConsoleSpanExporter to SQLiteSpanExporter for storing the LLM calls in sqlite DB rather than seeing the output in console, we get this error.
Solution:
Restart the kernel and make sure TraceProvider is loaded without any errors

Checklist

  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions