def METHOD_NAME(server, worker):
    if not OTEL_ENABLED:
        pass
    else:
        service_name = 'skyline.%s.webapp' % settings.SERVER_METRICS_NAME
        trace.set_tracer_provider(
            TracerProvider(
                resource=Resource.create({SERVICE_NAME: service_name})
            )
        )
        # SpanExporter receives the spans and send them to the target location.
        # exporter = jaeger.JaegerSpanExporter(
        jaeger_exporter = JaegerExporter(
            # service_name='webapp',
            # agent_host_name='127.0.0.1',
            agent_host_name=OTEL_JAEGEREXPORTER_AGENT_HOST_NAME,
            # Direct to jaeger
            # agent_port=6831,
            # Send to otelcol
            # agent_port=26831,
            agent_port=OTEL_JAEGEREXPORTER_AGENT_PORT,
        )
        span_processor = BatchSpanProcessor(jaeger_exporter)
        trace.get_tracer_provider().add_span_processor(span_processor)
        # Meter is responsible for creating and recording metrics
    #    metrics.set_meter_provider(MeterProvider())
        # opentelemetry.metrics.get_meter(instrumenting_module_name, instrumenting_library_version='', meter_provider=None)
    #    meter = metrics.get_meter(__name__)
        # controller collects metrics created from meter and exports it via the
        # exporter every interval
    #    controller = PushController(meter, metric_exporter, 60)