mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-15 20:48:02 +00:00
Temporarily disable Django instrumentation to test Host header issue
- Comment out DjangoInstrumentor().instrument() to test if it's causing duplicate Host headers - Remove unused DjangoInstrumentor import - Keep other instrumentation (database, HTTP client) enabled - This is a temporary test to isolate the Host header duplication issue
This commit is contained in:
@@ -18,7 +18,6 @@ from opentelemetry.sdk.resources import Resource
|
|||||||
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
|
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
|
||||||
from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter
|
from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter
|
||||||
from opentelemetry.exporter.prometheus import PrometheusMetricReader
|
from opentelemetry.exporter.prometheus import PrometheusMetricReader
|
||||||
from opentelemetry.instrumentation.django import DjangoInstrumentor
|
|
||||||
from opentelemetry.instrumentation.psycopg2 import Psycopg2Instrumentor
|
from opentelemetry.instrumentation.psycopg2 import Psycopg2Instrumentor
|
||||||
from opentelemetry.instrumentation.pymysql import PyMySQLInstrumentor
|
from opentelemetry.instrumentation.pymysql import PyMySQLInstrumentor
|
||||||
from opentelemetry.instrumentation.requests import RequestsInstrumentor
|
from opentelemetry.instrumentation.requests import RequestsInstrumentor
|
||||||
@@ -178,9 +177,9 @@ class OpenTelemetryConfig:
|
|||||||
def setup_instrumentation(self) -> None:
|
def setup_instrumentation(self) -> None:
|
||||||
"""Set up OpenTelemetry instrumentation for various libraries."""
|
"""Set up OpenTelemetry instrumentation for various libraries."""
|
||||||
try:
|
try:
|
||||||
# Django instrumentation
|
# Django instrumentation - TEMPORARILY DISABLED TO TEST HEADER ISSUE
|
||||||
DjangoInstrumentor().instrument()
|
# DjangoInstrumentor().instrument()
|
||||||
logger.info("Django instrumentation enabled")
|
# logger.info("Django instrumentation enabled")
|
||||||
|
|
||||||
# Database instrumentation
|
# Database instrumentation
|
||||||
Psycopg2Instrumentor().instrument()
|
Psycopg2Instrumentor().instrument()
|
||||||
|
|||||||
Reference in New Issue
Block a user