Skip to content

Commit 699b25a

Browse files
Regenerate semantic conventions
Executed command: sbt ; root/semanticConventionsGenerate; headerCreateAll; scalafixAll; scalafmtAll
1 parent c0ecb14 commit 699b25a

File tree

51 files changed

+2535
-3286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2535
-3286
lines changed

semconv/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/AndroidExperimentalAttributes.scala

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,46 +22,31 @@ import org.typelevel.otel4s.AttributeKey._
2222
// DO NOT EDIT, this is an Auto-generated file from buildscripts/semantic-convention/templates/SemanticAttributes.scala.j2
2323
object AndroidExperimentalAttributes {
2424

25-
/** Uniquely identifies the framework API revision offered by a version
26-
* (`os.version`) of the android operating system. More information can be
27-
* found <a
28-
* href="https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels">here</a>.
29-
*/
25+
/**
26+
* Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found <a href="https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels">here</a>.
27+
*/
3028
val AndroidOsApiLevel: AttributeKey[String] = string("android.os.api_level")
3129

32-
/** Deprecated use the `device.app.lifecycle` event definition including
33-
* `android.state` as a payload field instead.
34-
*
35-
* @note
36-
* - The Android lifecycle states are defined in <a
37-
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity
38-
* lifecycle callbacks</a>, and from which the `OS identifiers` are
39-
* derived.
40-
*/
30+
/**
31+
* Deprecated use the `device.app.lifecycle` event definition including `android.state` as a payload field instead.
32+
*
33+
* @note
34+
* - The Android lifecycle states are defined in <a href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity lifecycle callbacks</a>, and from which the `OS identifiers` are derived.
35+
*/
4136
val AndroidState: AttributeKey[String] = string("android.state")
4237
// Enum definitions
43-
44-
/** Values for [[AndroidState]].
45-
*/
38+
39+
/**
40+
* Values for [[AndroidState]].
41+
*/
4642
abstract class AndroidStateValue(val value: String)
4743
object AndroidStateValue {
48-
49-
/** Any time before Activity.onResume() or, if the app has no Activity,
50-
* Context.startService() has been called in the app for the first time.
51-
*/
44+
/** Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time. */
5245
case object Created extends AndroidStateValue("created")
53-
54-
/** Any time after Activity.onPause() or, if the app has no Activity,
55-
* Context.stopService() has been called when the app was in the foreground
56-
* state.
57-
*/
46+
/** 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. */
5847
case object Background extends AndroidStateValue("background")
59-
60-
/** Any time after Activity.onResume() or, if the app has no Activity,
61-
* Context.startService() has been called when the app was in either the
62-
* created or background states.
63-
*/
48+
/** Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has been called when the app was in either the created or background states. */
6449
case object Foreground extends AndroidStateValue("foreground")
6550
}
6651

67-
}
52+
}

semconv/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/BrowserExperimentalAttributes.scala

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,49 +22,37 @@ import org.typelevel.otel4s.AttributeKey._
2222
// DO NOT EDIT, this is an Auto-generated file from buildscripts/semantic-convention/templates/SemanticAttributes.scala.j2
2323
object BrowserExperimentalAttributes {
2424

25-
/** Array of brand name and version separated by a space
26-
*
27-
* @note
28-
* - This value is intended to be taken from the <a
29-
* href="https://wicg.github.io/ua-client-hints/#interface">UA client
30-
* hints API</a> (`navigator.userAgentData.brands`).
31-
*/
25+
/**
26+
* Array of brand name and version separated by a space
27+
*
28+
* @note
29+
* - This value is intended to be taken from the <a href="https://wicg.github.io/ua-client-hints/#interface">UA client hints API</a> (`navigator.userAgentData.brands`).
30+
*/
3231
val BrowserBrands: AttributeKey[Seq[String]] = stringSeq("browser.brands")
3332

34-
/** Preferred language of the user using the browser
35-
*
36-
* @note
37-
* - This value is intended to be taken from the Navigator API
38-
* `navigator.language`.
39-
*/
33+
/**
34+
* Preferred language of the user using the browser
35+
*
36+
* @note
37+
* - This value is intended to be taken from the Navigator API `navigator.language`.
38+
*/
4039
val BrowserLanguage: AttributeKey[String] = string("browser.language")
4140

42-
/** A boolean that is true if the browser is running on a mobile device
43-
*
44-
* @note
45-
* - This value is intended to be taken from the <a
46-
* href="https://wicg.github.io/ua-client-hints/#interface">UA client
47-
* hints API</a> (`navigator.userAgentData.mobile`). If unavailable, this
48-
* attribute SHOULD be left unset.
49-
*/
41+
/**
42+
* A boolean that is true if the browser is running on a mobile device
43+
*
44+
* @note
45+
* - This value is intended to be taken from the <a href="https://wicg.github.io/ua-client-hints/#interface">UA client hints API</a> (`navigator.userAgentData.mobile`). If unavailable, this attribute SHOULD be left unset.
46+
*/
5047
val BrowserMobile: AttributeKey[Boolean] = boolean("browser.mobile")
5148

52-
/** The platform on which the browser is running
53-
*
54-
* @note
55-
* - This value is intended to be taken from the <a
56-
* href="https://wicg.github.io/ua-client-hints/#interface">UA client
57-
* hints API</a> (`navigator.userAgentData.platform`). If unavailable,
58-
* the legacy `navigator.platform` API SHOULD NOT be used instead and
59-
* this attribute SHOULD be left unset in order for the values to be
60-
* consistent. The list of possible values is defined in the <a
61-
* href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform">W3C
62-
* User-Agent Client Hints specification</a>. Note that some (but not
63-
* all) of these values can overlap with values in the <a
64-
* href="./os.md">`os.type` and `os.name` attributes</a>. However, for
65-
* consistency, the values in the `browser.platform` attribute should
66-
* capture the exact value that the user agent provides.
67-
*/
49+
/**
50+
* The platform on which the browser is running
51+
*
52+
* @note
53+
* - This value is intended to be taken from the <a href="https://wicg.github.io/ua-client-hints/#interface">UA client hints API</a> (`navigator.userAgentData.platform`). If unavailable, the legacy `navigator.platform` API SHOULD NOT be used instead and this attribute SHOULD be left unset in order for the values to be consistent.
54+
The list of possible values is defined in the <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-platform">W3C User-Agent Client Hints specification</a>. Note that some (but not all) of these values can overlap with values in the <a href="./os.md">`os.type` and `os.name` attributes</a>. However, for consistency, the values in the `browser.platform` attribute should capture the exact value that the user agent provides.
55+
*/
6856
val BrowserPlatform: AttributeKey[String] = string("browser.platform")
6957

70-
}
58+
}

semconv/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/ClientExperimentalAttributes.scala

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,22 @@ import org.typelevel.otel4s.AttributeKey._
2222
// DO NOT EDIT, this is an Auto-generated file from buildscripts/semantic-convention/templates/SemanticAttributes.scala.j2
2323
object ClientExperimentalAttributes {
2424

25-
/** Client address - domain name if available without reverse DNS lookup;
26-
* otherwise, IP address or Unix domain socket name.
27-
*
28-
* @note
29-
* - When observed from the server side, and when communicating through an
30-
* intermediary, `client.address` SHOULD represent the client address
31-
* behind any intermediaries, for example proxies, if it's available.
32-
*/
33-
@deprecated(
34-
"use `org.typelevel.otel4s.semconv.attributes.ClientAttributes.ClientAddress` instead.",
35-
"0.5.0"
36-
)
25+
/**
26+
* Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
27+
*
28+
* @note
29+
* - When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent the client address behind any intermediaries, for example proxies, if it's available.
30+
*/
31+
@deprecated("use `org.typelevel.otel4s.semconv.attributes.ClientAttributes.ClientAddress` instead.", "0.5.0")
3732
val ClientAddress: AttributeKey[String] = string("client.address")
3833

39-
/** Client port number.
40-
*
41-
* @note
42-
* - When observed from the server side, and when communicating through an
43-
* intermediary, `client.port` SHOULD represent the client port behind
44-
* any intermediaries, for example proxies, if it's available.
45-
*/
46-
@deprecated(
47-
"use `org.typelevel.otel4s.semconv.attributes.ClientAttributes.ClientPort` instead.",
48-
"0.5.0"
49-
)
34+
/**
35+
* Client port number.
36+
*
37+
* @note
38+
* - When observed from the server side, and when communicating through an intermediary, `client.port` SHOULD represent the client port behind any intermediaries, for example proxies, if it's available.
39+
*/
40+
@deprecated("use `org.typelevel.otel4s.semconv.attributes.ClientAttributes.ClientPort` instead.", "0.5.0")
5041
val ClientPort: AttributeKey[Long] = long("client.port")
5142

52-
}
43+
}

0 commit comments

Comments
 (0)