startActiveSpan example


        if (!class_exists(GlobalTracer::class)) {
            return;
        }

        if ($category !== 'shopware') {
            $category = 'shopware.' . $category;
        }

        /** @see \DDTrace\Tag::SERVICE_NAME */
        $tags = array_merge(['service.name' => $category]$tags);
        $span = GlobalTracer::get()->startActiveSpan($title[
            'tags' => $tags,
        ]);

        $this->spans[$title] = $span;
    }

    public function stop(string $title): void
    {
        if (!class_exists(GlobalTracer::class)) {
            return;
        }

        
Home | Imprint | This part of the site doesn't use cookies.