mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-14 19:02:38 +00:00
fix(telemetry): add integration and unit tests for otel provider
This commit is contained in:
parent
53b3eda1f5
commit
e815738936
10 changed files with 1050 additions and 28 deletions
|
|
@ -70,6 +70,8 @@ logger = get_logger(name=__name__, category="core::server")
|
|||
|
||||
def warn_with_traceback(message, category, filename, lineno, file=None, line=None):
|
||||
log = file if hasattr(file, "write") else sys.stderr
|
||||
if log is None:
|
||||
return
|
||||
traceback.print_stack(file=log)
|
||||
log.write(warnings.formatwarning(message, category, filename, lineno, line))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue