Hello 👋 just adding a friendly note here that if you're also running the book examples with the latest OTel libraries (1.12.0 as opposed to 1.9.0 in the book) you may need to make some quick changes
in common.py change:
from opentelemetry.sdk._logs import OTLPHandler is now LoggingHandler
from opentelemetry.exporter.otlp.proto.grpc._metric_exporter is now from opentelemetry.exporter.otlp.proto.grpc.metric_exporter
in grocery_store.py, also change references of OTLPHandler to LoggingHandler
Hello 👋 just adding a friendly note here that if you're also running the book examples with the latest OTel libraries (1.12.0 as opposed to 1.9.0 in the book) you may need to make some quick changes
in common.py change:
from opentelemetry.sdk._logs import OTLPHandler
is nowLoggingHandler
from opentelemetry.exporter.otlp.proto.grpc._metric_exporter
is nowfrom opentelemetry.exporter.otlp.proto.grpc.metric_exporter
in grocery_store.py, also change references of
OTLPHandler
toLoggingHandler