Skip to content

Commit

Permalink
fix(tracing): add framework data (#5340)
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes authored Oct 18, 2023
1 parent d61dd90 commit 3d532c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/build/src/core/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export async function buildSite(flags: Partial<BuildFlags> = {}): Promise<{
'build.id': buildId,
'deploy.context': flagsA.context,
'site.id': flagsA.siteId,
'build.info.primary_framework': framework,
}
const rootCtx = context.with(rootTracingContext, () => setMultiSpanAttributes(attributes))

Expand Down
2 changes: 2 additions & 0 deletions packages/build/src/tracing/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export type RootExecutionAttributes = {
'site.id': string
'deploy.id': string
'deploy.context': string
// We need to respect the current format used by Buildbot
'build.info.primary_framework': string
}

/** Attributes used for the execution of each build step */
Expand Down

0 comments on commit 3d532c3

Please sign in to comment.