Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stability on attributes and events #568

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.

What's changed

* For Issue [#564](https://github.com/open-telemetry/weaver/issues/564) - Require attributes and event fields to have stability: Added warnings for missing stability on: Attributes, Enum members in attributes, Event AnyValues, Enum members in AnyValues. ([#568](https://github.com/open-telemetry/weaver/pull/568) by @jerbly).
* Added an OTLP receiver to Weaver to prepare for the `weaver registry live-check` command. (see [#548](https://github.com/open-telemetry/weaver/pull/548) by @lquerel)
* Refactored CLI registry commands to remove some duplication. Resolving the registry with policy checks is common for `generate`, `resolve` and `check`. ([#536](https://github.com/open-telemetry/weaver/pull/536) by @jerbly).
* Added missing `after_resolution` policy checks to `generate` and `resolve` through the common code.
Expand Down
2 changes: 2 additions & 0 deletions crates/weaver_forge/data/exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ groups:
Span attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes:
- id: otel.library.name
stability: stable
type: string
deprecated: use the `otel.scope.name` attribute.
brief:
examples: ['io.opentelemetry.contrib.mongodb']
- id: otel.library.version
stability: stable
type: string
deprecated: use the `otel.scope.version` attribute.
brief:
Expand Down
8 changes: 8 additions & 0 deletions crates/weaver_forge/data/jvm-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ groups:
type:
members:
- id: heap
stability: stable
value: 'heap'
brief: 'Heap memory.'
- id: non_heap
stability: stable
value: 'non_heap'
brief: 'Non-heap memory'
requirement_level: recommended
Expand Down Expand Up @@ -107,21 +109,27 @@ groups:
type:
members:
- id: new
stability: stable
value: 'new'
brief: 'A thread that has not yet started is in this state.'
- id: runnable
stability: stable
value: 'runnable'
brief: 'A thread executing in the Java virtual machine is in this state.'
- id: blocked
stability: stable
value: 'blocked'
brief: 'A thread that is blocked waiting for a monitor lock is in this state.'
- id: waiting
stability: stable
value: 'waiting'
brief: 'A thread that is waiting indefinitely for another thread to perform a particular action is in this state.'
- id: timed_waiting
stability: stable
value: 'timed_waiting'
brief: 'A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.'
- id: terminated
stability: stable
value: 'terminated'
brief: 'A thread that has exited is in this state.'
brief: "State of the thread."
Expand Down
9 changes: 9 additions & 0 deletions crates/weaver_forge/data/mobile-events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ groups:
mutually exclusive.
body:
type: map
stability: stable
id: device.app.lifecycle.fields
requirement_level: required
fields:
Expand All @@ -26,24 +27,29 @@ groups:
type: enum
members:
- id: active
stability: stable
value: 'active'
brief: >
The app has become `active`. Associated with UIKit notification `applicationDidBecomeActive`.
- id: inactive
stability: stable
value: 'inactive'
brief: >
The app is now `inactive`. Associated with UIKit notification `applicationWillResignActive`.
- id: background
stability: stable
value: 'background'
brief: >
The app is now in the background.
This value is associated with UIKit notification `applicationDidEnterBackground`.
- id: foreground
stability: stable
value: 'foreground'
brief: >
The app is now in the foreground.
This value is associated with UIKit notification `applicationWillEnterForeground`.
- id: terminate
stability: stable
value: 'terminate'
brief: >
The app is about to terminate. Associated with UIKit notification `applicationWillTerminate`.
Expand All @@ -59,16 +65,19 @@ groups:
type: enum
members:
- id: created
stability: stable
value: 'created'
brief: >
Any time before Activity.onResume() or, if the app has no Activity, Context.startService()
has been called in the app for the first time.
- id: background
stability: stable
value: 'background'
brief: >
Any time after Activity.onPause() or, if the app has no Activity,
Context.stopService() has been called when the app was in the foreground state.
- id: foreground
stability: stable
value: 'foreground'
brief: >
Any time after Activity.onResume() or, if the app has no Activity,
Expand Down
Loading
Loading