Skip to content

Commit

Permalink
Change span names for entity resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
akrantz01 committed May 22, 2024
1 parent b206908 commit b6eb1f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions graphql/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl Query {
}

#[graphql(entity)]
#[instrument(name = "Query::event_entity_by_slug", skip(self, ctx))]
#[instrument(name = "Query::entity::event", skip(self, ctx))]
async fn event_entity_by_slug(
&self,
ctx: &Context<'_>,
Expand All @@ -178,7 +178,7 @@ impl Query {
}

#[graphql(entity)]
#[instrument(name = "Query::organization_entity_by_id", skip(self, ctx))]
#[instrument(name = "Query::entity::organization", skip(self, ctx))]
async fn organization_entity_by_id(
&self,
ctx: &Context<'_>,
Expand All @@ -190,7 +190,7 @@ impl Query {
}

#[graphql(entity)]
#[instrument(name = "Query::user_entity_by_id", skip(self, ctx))]
#[instrument(name = "Query::entity::user", skip(self, ctx))]
async fn user_entity_by_id(
&self,
ctx: &Context<'_>,
Expand All @@ -202,7 +202,7 @@ impl Query {
}

#[graphql(entity)]
#[instrument(name = "Query::participant_entity_by_id", skip(self, ctx))]
#[instrument(name = "Query::entity::participant", skip(self, ctx))]
async fn participant_entity_by_id(
&self,
ctx: &Context<'_>,
Expand All @@ -215,7 +215,7 @@ impl Query {
}

#[graphql(entity)]
#[instrument(name = "Query::organizer_entity_by_id", skip(self, ctx))]
#[instrument(name = "Query::entity::organizer", skip(self, ctx))]
async fn organizer_entity_by_id(
&self,
ctx: &Context<'_>,
Expand Down

0 comments on commit b6eb1f1

Please sign in to comment.