Skip to content

Commit

Permalink
fix(nextjs): Rename data fetch span op to http.server
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Sep 27, 2022
1 parent d1f0b60 commit c7db147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/src/config/wrappers/wrapperUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr

const newTransaction = startTransaction(
{
op: 'nextjs.data.server',
op: 'http.server',
name: options.requestedRouteName,
...traceparentData,
status: 'ok',
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/test/config/wrappers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('data-fetching function wrappers', () => {
expect(startTransactionSpy).toHaveBeenCalledWith(
expect.objectContaining({
name: '/tricks/[trickName]',
op: 'nextjs.data.server',
op: 'http.server',
metadata: expect.objectContaining({ source: 'route' }),
}),
{
Expand All @@ -64,7 +64,7 @@ describe('data-fetching function wrappers', () => {
expect(startTransactionSpy).toHaveBeenCalledWith(
expect.objectContaining({
name: '/tricks/[trickName]',
op: 'nextjs.data.server',
op: 'http.server',
metadata: expect.objectContaining({ source: 'route' }),
}),
{
Expand Down

0 comments on commit c7db147

Please sign in to comment.