Skip to content

Commit

Permalink
Merge pull request #3351 from cloudflare/felix/011424-user-span-names
Browse files Browse the repository at this point in the history
[o11y] Adjust user span naming
  • Loading branch information
fhanau authored Jan 17, 2025
2 parents 811fe74 + c134deb commit a50d62a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/workerd/api/actor.c++
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LocalActorOutgoingFactory final: public Fetcher::OutgoingFactory {
},
{.inHouse = true,
.wrapMetrics = true,
.operationName = kj::ConstString("actor_subrequest"_kjc)}));
.operationName = kj::ConstString("durable_object_subrequest"_kjc)}));
}

private:
Expand Down Expand Up @@ -82,7 +82,7 @@ class GlobalActorOutgoingFactory final: public Fetcher::OutgoingFactory {
},
{.inHouse = true,
.wrapMetrics = true,
.operationName = kj::ConstString("actor_subrequest"_kjc)}));
.operationName = kj::ConstString("durable_object_subrequest"_kjc)}));
}

private:
Expand Down Expand Up @@ -110,7 +110,7 @@ kj::Own<WorkerInterface> ReplicaActorOutgoingFactory::newSingleUseClient(
},
{.inHouse = true,
.wrapMetrics = true,
.operationName = kj::ConstString("actor_subrequest"_kjc)}));
.operationName = kj::ConstString("durable_object_subrequest"_kjc)}));
}

jsg::Ref<Fetcher> ColoLocalActorNamespace::get(kj::String actorId) {
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/hyperdrive.c++
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ kj::String Hyperdrive::getConnectionString() {
kj::Promise<kj::Own<kj::AsyncIoStream>> Hyperdrive::connectToDb() {
auto& context = IoContext::current();
auto service =
context.getSubrequestChannel(this->clientIndex, true, kj::none, "hyperdrive_dev"_kjc);
context.getSubrequestChannel(this->clientIndex, true, kj::none, "hyperdrive_connect"_kjc);

kj::HttpHeaderTable headerTable;
kj::HttpHeaders headers(headerTable);
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/web-socket.c++
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jsg::Ref<WebSocket> WebSocket::constructor(jsg::Lock& js,
urlRecord.fragment == kj::none, DOMSyntaxError, wsErr, "The url fragment must be empty.");

kj::HttpHeaders headers(context.getHeaderTable());
auto client = context.getHttpClient(0, false, kj::none, "WebSocket::constructor"_kjc);
auto client = context.getHttpClient(0, false, kj::none, "websocket_open"_kjc);

// Set protocols header if necessary.
KJ_IF_SOME(variant, protocols) {
Expand Down

0 comments on commit a50d62a

Please sign in to comment.