Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions javascript/sentry-conventions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The package exports:

- `attributes`: contains constants for all attribute names and their types, as defined in the Sentry semantic conventions
- `attributes.ATTRIBUTE_METADATA`: provides metadata about attributes, such as their type, scrubbing definition, deprecation info, and lookup keys
- `@sentry/conventions/attributes/search`: contains constants and metadata for the names exposed in Sentry search
- `attributes.Attributes`: represents a bag of typed attributes
- `op`: contains constants for span operations used in Sentry

Expand Down
3 changes: 3 additions & 0 deletions javascript/sentry-conventions/attributes/search.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file is a compatibility shim for TypeScript compilers that do not
// support the package.json `exports` field for resolving subpath exports.
export * from '../dist/search';
3 changes: 3 additions & 0 deletions javascript/sentry-conventions/attributes/search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file is a compatibility shim for bundlers (e.g. webpack 4) that do not
// support the package.json `exports` field for resolving subpath exports.
module.exports = require('../dist/search.cjs');
2 changes: 1 addition & 1 deletion javascript/sentry-conventions/build.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineBuildConfig } from 'unbuild';

export default defineBuildConfig({
entries: ['./src/index', './src/attributes', './src/op'],
entries: ['./src/index', './src/attributes', './src/search', './src/op'],
outDir: 'dist',
declaration: 'compatible',
sourcemap: true,
Expand Down
5 changes: 5 additions & 0 deletions javascript/sentry-conventions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"import": "./dist/attributes.mjs",
"require": "./dist/attributes.cjs"
},
"./attributes/search": {
"import": "./dist/search.mjs",
"require": "./dist/search.cjs"
},
"./op": {
"import": "./dist/op.mjs",
"require": "./dist/op.cjs"
Expand All @@ -32,6 +36,7 @@
},
"files": [
"dist",
"attributes",
"attributes.js",
"attributes.d.ts",
"op.js",
Expand Down
Loading
Loading