This commit is contained in:
Adil Hafeez 2024-12-06 16:47:30 -08:00
parent 66550ccef3
commit aaee5761ea
3 changed files with 4 additions and 4 deletions

View file

@ -19,11 +19,11 @@ exporters:
otlphttp:
endpoint: "https://logfire-api.pydantic.dev"
headers:
Authorization: "${LOGFIRE_API_KEY}"
Authorization: "Bearer ${LOGFIRE_API_KEY}"
service:
pipelines:
traces:
receivers: [otlp]
processors: [filter, batch]
processors: [batch]
exporters: [otlphttp]

View file

@ -1,7 +1,7 @@
services:
weather_forecast_service:
build:
context: ./weather_forecast_service
context: ./
environment:
- OLTP_HOST=http://otel-collector:4317
extra_hosts:

View file

@ -56,7 +56,7 @@ start_demo() {
load_env
if [ "$1" == "logfire" ] && [ -z "$LOGFIRE_API_KEY"]; then
if [ "$1" == "logfire" ] && [ -z "$LOGFIRE_API_KEY" ]; then
echo "Error: LOGFIRE_API_KEY environment variable is required for Logfire."
exit 1
fi