From ee883c050b23a3c3ba847925750cd583325e7b27 Mon Sep 17 00:00:00 2001 From: Alessandro Chitolina Date: Mon, 2 May 2022 16:06:19 +0200 Subject: [PATCH] http.request -> http.client --- src/Tracing/HttpClient/AbstractTraceableHttpClient.php | 2 +- tests/Tracing/HttpClient/TraceableHttpClientTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Tracing/HttpClient/AbstractTraceableHttpClient.php b/src/Tracing/HttpClient/AbstractTraceableHttpClient.php index 28edd8ff..ff57b253 100644 --- a/src/Tracing/HttpClient/AbstractTraceableHttpClient.php +++ b/src/Tracing/HttpClient/AbstractTraceableHttpClient.php @@ -51,7 +51,7 @@ public function request(string $method, string $url, array $options = []): Respo $options['headers'] = $headers; $context = new SpanContext(); - $context->setOp('http.request'); + $context->setOp('http.client'); $context->setTags([ 'http.method' => $method, 'http.url' => $url, diff --git a/tests/Tracing/HttpClient/TraceableHttpClientTest.php b/tests/Tracing/HttpClient/TraceableHttpClientTest.php index 9870d5ed..24a2cb79 100644 --- a/tests/Tracing/HttpClient/TraceableHttpClientTest.php +++ b/tests/Tracing/HttpClient/TraceableHttpClientTest.php @@ -76,7 +76,7 @@ public function testRequest(): void $this->assertCount(2, $spans); $this->assertNull($spans[1]->getEndTimestamp()); - $this->assertSame('http.request', $spans[1]->getOp()); + $this->assertSame('http.client', $spans[1]->getOp()); $this->assertSame([ 'http.method' => 'POST', 'http.url' => 'http://www.example.org/test-page', @@ -87,7 +87,7 @@ public function testRequest(): void $spans = $transaction->getSpanRecorder()->getSpans(); $this->assertCount(2, $spans); $this->assertNotNull($spans[1]->getEndTimestamp()); - $this->assertSame('http.request', $spans[1]->getOp()); + $this->assertSame('http.client', $spans[1]->getOp()); $this->assertSame([ 'http.method' => 'POST', 'http.url' => 'http://www.example.org/test-page',