Skip to content

Commit

Permalink
added more traces
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Aug 20, 2024
1 parent 1dcd8f6 commit 65109fc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import hashObject from 'object-hash';
import { CriticalityLevel } from '@graphql-inspector/core';
import type { CheckPolicyResponse } from '@hive/policy';
import type { CompositionFailureError, ContractsInputType } from '@hive/schema';
import { traceFn } from '@hive/service-common';
import {
HiveSchemaChangeModel,
type RegistryServiceUrlChangeSerializableChange,
Expand Down Expand Up @@ -346,6 +347,7 @@ export class RegistryChecks {
return existingSchemaResult.sdl ?? null;
}

@traceFn('RegistryChecks.policyCheck')
async policyCheck({
selector,
modifiedSdl,
Expand Down Expand Up @@ -397,6 +399,7 @@ export class RegistryChecks {
* Diff incoming and existing SDL and generate a list of changes.
* Uses usage stats to determine whether a change is safe or not (if available).
*/
@traceFn('RegistryChecks.diff')
async diff(args: {
/** The existing SDL */
existingSdl: string | null;
Expand Down

0 comments on commit 65109fc

Please sign in to comment.