Start shipping traces to Langtrace Cloud or your preferred OpenTelemetry-compatible backend in under 5 minutes!
Parameter | Type | Default Value | Description |
---|---|---|---|
batch | bool | True | Whether to batch spans before sending them. |
api_key | str | LANGTRACE_API_KEY or None | The API key for authentication. |
write_spans_to_console | bool | False | Whether to write spans to the console. |
custom_remote_exporter | Optional[Exporter] | None | Custom remote exporter. If None , a default LangTraceExporter will be used. |
api_host | Optional[str] | https://langtrace.ai/ | The API host for the remote exporter. |
service_name | Optional[str] | None | The Service name for initializing langtrace |
disable_instrumentations | Optional [DisableInstrumentations] | None | You can pass an object to disable instrumentation for specific vendors, e.g., {'only': ['openai']} or {'all_except': ['openai']} . |