@takeshape/logger 11.105.1 → 11.107.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/logger.js +9 -2
  2. package/package.json +1 -1
package/dist/logger.js CHANGED
@@ -187,8 +187,15 @@ function decorateLogFn({ provider, level, sentryClient }, entry) {
187
187
  if (entry.context?.user?.id) {
188
188
  scope.setUser(entry.context.user);
189
189
  }
190
- if (entry.context?.custom?.project?.id) {
191
- scope.setTag('projectId', entry.context.custom.project.id);
190
+ const project = entry.context?.custom?.project;
191
+ if (project?.id) {
192
+ scope.setTag('projectId', project.id);
193
+ }
194
+ if (project?.schemaId) {
195
+ scope.setTag('schemaId', project.schemaId);
196
+ }
197
+ if (project?.schemaHash) {
198
+ scope.setTag('schemaHash', project.schemaHash);
192
199
  }
193
200
  if (error) {
194
201
  scope.setExtras(getSentryExtras(error));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/logger",
3
- "version": "11.105.1",
3
+ "version": "11.107.1",
4
4
  "description": "Logging utility.",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {