File tree 1 file changed +7
-1
lines changed
packages/gatsby/src/services
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { actions } from "../redux/actions"
7
7
import { deleteUntouchedPages , findChangedPages } from "../utils/changed-pages"
8
8
import { getDataStore } from "../datastore"
9
9
10
+ const isInitialCreatePages = true
11
+ let createPagesCount = 0
10
12
export async function createPages ( {
11
13
parentSpan,
12
14
gatsbyNodeGraphQLFunction,
@@ -44,11 +46,15 @@ export async function createPages({
44
46
return returnValue
45
47
}
46
48
49
+ createPagesCount += 1
50
+ const traceId = isInitialCreatePages
51
+ ? `initial-createPages`
52
+ : `createPages #${ createPagesCount } `
47
53
await apiRunnerNode (
48
54
`createPages` ,
49
55
{
50
56
graphql : wrappedGraphQL ,
51
- traceId : `initial-createPages` ,
57
+ traceId,
52
58
waitForCascadingActions : true ,
53
59
parentSpan : activity . span ,
54
60
deferNodeMutation,
You can’t perform that action at this time.
0 commit comments