Simplified Telemetry API and tying it to logger

This commit is contained in:
Ashwin Bharambe 2024-09-07 15:25:35 -07:00
parent 741310f78e
commit 6ccb0a4c1f
15 changed files with 496 additions and 161 deletions

View file

@ -0,0 +1,21 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from typing import List
from llama_toolchain.core.datatypes import * # noqa: F403
def available_providers() -> List[ProviderSpec]:
return [
InlineProviderSpec(
api=Api.telemetry,
provider_type="console",
pip_packages=[],
module="llama_toolchain.telemetry.console",
config_class="llama_toolchain.telemetry.console.ConsoleConfig",
),
]