Skip to content

Commit

Permalink
feat: update config schema to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jharvey10 committed Apr 19, 2024
1 parent 5f125c2 commit ca3da4b
Show file tree
Hide file tree
Showing 10 changed files with 304 additions and 95 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@ibm/telemetry-attributes-js": "^3.1.0",
"@ibm/telemetry-config-schema": "^1.2.0",
"@ibm/telemetry-config-schema": "^1.3.0",
"@opentelemetry/api": "^1.8.0",
"@opentelemetry/exporter-metrics-otlp-http": "^0.50.0",
"@opentelemetry/otlp-exporter-base": "^0.50.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright IBM Corp. 2023, 2024
#
# This source code is licensed under the Apache-2.0 license found in the
# LICENSE file in the root directory of this source tree.
#
version: 1
endpoint: 'https://example.com/v1/metrics'
collect:
js:
functions:
allowedArgumentStringValues: []
projectId: '123'
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright IBM Corp. 2023, 2024
#
# This source code is licensed under the Apache-2.0 license found in the
# LICENSE file in the root directory of this source tree.
#
version: 1
endpoint: 'https://example.com/v1/metrics'
collect:
npm:
dependencies:
js: {}
projectId: '123'
6 changes: 6 additions & 0 deletions src/test/__fixtures/config-files/valid/all-keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ collect:
allowedAttributeStringValues:
- 'one'
- 'two'
js:
functions:
allowedArgumentStringValues:
- 'one'
- 'two'
tokens:
projectId: '123'
13 changes: 13 additions & 0 deletions src/test/__fixtures/config-files/valid/empty-js-functions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema/dist/config.schema.json
#
# Copyright IBM Corp. 2023, 2024
#
# This source code is licensed under the Apache-2.0 license found in the
# LICENSE file in the root directory of this source tree.
#
version: 1
endpoint: 'https://example.com/v1/metrics'
collect:
js:
functions: {}
projectId: '123'
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema/dist/config.schema.json
#
# Copyright IBM Corp. 2023, 2024
#
Expand All @@ -7,8 +8,6 @@
version: 1
endpoint: 'https://example.com/v1/metrics'
collect:
npm:
dependencies:
jsx:
elements: {}
projectId: '123'
13 changes: 13 additions & 0 deletions src/test/__fixtures/config-files/valid/null-js-functions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema/dist/config.schema.json
#
# Copyright IBM Corp. 2023, 2024
#
# This source code is licensed under the Apache-2.0 license found in the
# LICENSE file in the root directory of this source tree.
#
version: 1
endpoint: 'https://example.com/v1/metrics'
collect:
js:
functions:
projectId: '123'
13 changes: 13 additions & 0 deletions src/test/__fixtures/config-files/valid/null-jsx-elements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema/dist/config.schema.json
#
# Copyright IBM Corp. 2023, 2024
#
# This source code is licensed under the Apache-2.0 license found in the
# LICENSE file in the root directory of this source tree.
#
version: 1
endpoint: 'https://example.com/v1/metrics'
collect:
jsx:
elements:
projectId: '123'
Loading

0 comments on commit ca3da4b

Please sign in to comment.