Fix OTel examples to use new runner

This commit is contained in:
Mark Backman
2025-05-29 00:59:45 -04:00
parent cf8eeaab0b
commit c522a1ad1a
4 changed files with 91 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
import argparse
import os
import sys
from dotenv import load_dotenv
from loguru import logger
@@ -159,6 +160,7 @@ async def run_example(transport: BaseTransport, _: argparse.Namespace, handle_si
if __name__ == "__main__":
from ..run import main
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from run import main
main(run_example, transport_params=transport_params)