code: def setup_tracing(shard: int, otlp_endpoint: str):
      resource = Resource.create(
          attributes={
              "service.name": f"text-generation-inference.server-{shard}"
          }
      )
      span_exporter = OTLPSpanExporter(
          endpoint=otlp_endpoint, insecure=True
      )
      span_processor = BatchSpanProcessor(span_exporter)
  
      trace.set_tracer_provider(TracerProvider(resource=resource))
      trace.get_tracer_provider().add_span_processor(span_processor)
  
file_path: text-generation-inference/server/text_generation_server/tracing.py
imports: import grpc
  from opentelemetry import trace
  from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
  from opentelemetry.instrumentation.grpc._aio_server import OpenTelemetryAioServerInterceptor
  from opentelemetry.semconv.trace import SpanAttributes
  from opentelemetry.sdk.resources import Resource
  from opentelemetry.sdk.trace import TracerProvider
  from opentelemetry.sdk.trace.export import BatchSpanProcessor
label_desc: Use image node_id 1 for calling a global function with example usage: setup_tracing(shard, otlp_endpoint) without return types