... The collector's "namespace" setting is the // OpenTelemetry instrumentation scope, not a prefix, so the name // exported here is exactly this one. $this->metrics->increment('home.page.viewed'); // Span names are " ", lowercase verb, no punctuation. // The framework span for this request already exists; this one nests // inside it and should describe work worth seeing on its own. $span = $this->tracerProvider ->getTracer('app') ->spanBuilder('render homepage') ->startSpan() ; try { return $this->render('home/index.html.twig'); } catch (\Throwable $e) { $span->recordException($e); throw $e; } finally { $span->end(); } } }