Renames otel config from jaeger to otel

Signed-off-by: Adrian Cole <adrian.cole@elastic.co>
This commit is contained in:
Adrian Cole 2024-12-05 13:22:46 +08:00
parent 66440e2c20
commit 54bceb92da
3 changed files with 4 additions and 3 deletions

View file

@ -113,7 +113,8 @@ You have two ways to install this repository:
``` ```
2. **Install from source**: 2. **Install from source**:
If you prefer to install from the source code, follow these steps: If you prefer to install from the source code, make sure you have [conda installed](https://docs.conda.io/projects/conda/en/stable).
Then, follow these steps:
```bash ```bash
mkdir -p ~/local mkdir -p ~/local
cd ~/local cd ~/local

View file

@ -13,7 +13,7 @@ from llama_stack.distribution.utils.config_dirs import RUNTIME_BASE_DIR
class TelemetrySink(str, Enum): class TelemetrySink(str, Enum):
JAEGER = "jaeger" OTEL = "otel"
SQLITE = "sqlite" SQLITE = "sqlite"
CONSOLE = "console" CONSOLE = "console"

View file

@ -66,7 +66,7 @@ class TelemetryAdapter(Telemetry):
provider = TracerProvider(resource=resource) provider = TracerProvider(resource=resource)
trace.set_tracer_provider(provider) trace.set_tracer_provider(provider)
if TelemetrySink.JAEGER in self.config.sinks: if TelemetrySink.OTEL in self.config.sinks:
otlp_exporter = OTLPSpanExporter( otlp_exporter = OTLPSpanExporter(
endpoint=self.config.otel_endpoint, endpoint=self.config.otel_endpoint,
) )