Skip to content

Commit 4c11530

Browse files
authored
feat(prom): flags to hide operation details, catch context build errors and count schema changes (#2142)
* feat(prom): flags to hide operation details, catch context build errors and count schema changes * feat(prom): flags to hide operation details, catch context build errors and count schema changes * Minor changeset
1 parent 8476c3d commit 4c11530

File tree

5 files changed

+267
-110
lines changed

5 files changed

+267
-110
lines changed

.changeset/curvy-buses-appear.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@envelop/prometheus': minor
3+
---
4+
5+
- Ability to hide operationName and operationType in the labels
6+
- Count schema changes
7+
- Catch errors during the context creation

packages/plugins/prometheus/src/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@ export type PrometheusTracingPluginConfig = {
1515
deprecatedFields?: boolean | ReturnType<typeof createCounter>;
1616
registry?: Registry;
1717
skipIntrospection?: boolean;
18+
schemaChangeCount?: boolean | ReturnType<typeof createCounter>;
19+
labels?: {
20+
operationName?: boolean;
21+
operationType?: boolean;
22+
fieldName?: boolean;
23+
typeName?: boolean;
24+
returnType?: boolean;
25+
};
1826
};

0 commit comments

Comments
 (0)