Skip to content

Commit 747da91

Browse files
authored
feat(semantic-conventions): update semantic conventions to v1.37.0 (#5879)
1 parent f2b0d2a commit 747da91

File tree

8 files changed

+5666
-3045
lines changed

8 files changed

+5666
-3045
lines changed

scripts/semconv/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ ROOT_DIR="${SCRIPT_DIR}/../../"
77

88
# Get latest version by running `git tag -l --sort=version:refname | tail -1`
99
# ... in [email protected]:open-telemetry/semantic-conventions.git
10-
SPEC_VERSION=v1.36.0
10+
SPEC_VERSION=v1.37.0
1111
# ... in [email protected]:open-telemetry/weaver.git
12-
GENERATOR_VERSION=v0.16.1
12+
GENERATOR_VERSION=v0.17.1
1313

1414
# When running on windows and you are getting references to ";C" (like Telemetry;C)
1515
# then this is an issue with the bash shell, so first run the following in your shell:

scripts/semconv/templates/registry/ts-experimental/docstring.ts.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{% endif -%}
4747

4848
{%- if member.deprecated %}
49-
{%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated) -%}
49+
{%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated.note) -%}
5050
{%- endif -%}
5151

5252
{%- set enum_jsdoc = "Enum value " ~ member.value | print_member_value ~ " for attribute {@link ATTR_" ~ attribute.name | screaming_snake_case ~ "}." -%}

scripts/semconv/templates/registry/ts-stable/docstring.ts.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{% endif -%}
4747

4848
{%- if member.deprecated %}
49-
{%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated) -%}
49+
{%- set deprecated_jsdoc = "\n@deprecated " ~ strong_rfc2119(member.deprecated.note) -%}
5050
{%- endif -%}
5151

5252
{%- set enum_jsdoc = "Enum value " ~ member.value | print_member_value ~ " for attribute {@link ATTR_" ~ attribute.name | screaming_snake_case ~ "}." -%}

semantic-conventions/CHANGELOG.md

Lines changed: 319 additions & 0 deletions
Large diffs are not rendered by default.

semantic-conventions/src/experimental_attributes.ts

Lines changed: 4523 additions & 2899 deletions
Large diffs are not rendered by default.

semantic-conventions/src/experimental_events.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
// DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates/registry/ts-experimental/events.ts.j2
1919
//-----------------------------------------------------------------------------------------------------------------
2020

21+
/**
22+
* This event indicates that the application has detected substandard UI rendering performance.
23+
*
24+
* @note Jank happens when the UI is rendered slowly enough for the user to experience some disruption or sluggishness.
25+
*
26+
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
27+
*/
28+
export const EVENT_APP_JANK = 'app.jank' as const;
29+
2130
/**
2231
* This event represents an instantaneous click on the screen of an application.
2332
*
@@ -83,34 +92,53 @@ export const EVENT_FEATURE_FLAG_EVALUATION = 'feature_flag.evaluation' as const;
8392
* This event describes the assistant message passed to GenAI system.
8493
*
8594
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
95+
*
96+
* @deprecated Chat history is reported on `gen_ai.input.messages` attribute on spans or `gen_ai.client.inference.operation.details` event.
8697
*/
8798
export const EVENT_GEN_AI_ASSISTANT_MESSAGE = 'gen_ai.assistant.message' as const;
8899

89100
/**
90101
* This event describes the Gen AI response message.
91102
*
92103
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
104+
*
105+
* @deprecated Chat history is reported on `gen_ai.output.messages` attribute on spans or `gen_ai.client.inference.operation.details` event.
93106
*/
94107
export const EVENT_GEN_AI_CHOICE = 'gen_ai.choice' as const;
95108

109+
/**
110+
* Describes the details of a GenAI completion request including chat history and parameters.
111+
*
112+
* @note This event is opt-in and could be used to store input and output details independently from traces.
113+
*
114+
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
115+
*/
116+
export const EVENT_GEN_AI_CLIENT_INFERENCE_OPERATION_DETAILS = 'gen_ai.client.inference.operation.details' as const;
117+
96118
/**
97119
* This event describes the system instructions passed to the GenAI model.
98120
*
99121
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
122+
*
123+
* @deprecated Chat history is reported on `gen_ai.system_instructions` attribute on spans or `gen_ai.client.inference.operation.details` event.
100124
*/
101125
export const EVENT_GEN_AI_SYSTEM_MESSAGE = 'gen_ai.system.message' as const;
102126

103127
/**
104128
* This event describes the response from a tool or function call passed to the GenAI model.
105129
*
106130
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
131+
*
132+
* @deprecated Chat history is reported on `gen_ai.input.messages` attribute on spans or `gen_ai.client.inference.operation.details` event.
107133
*/
108134
export const EVENT_GEN_AI_TOOL_MESSAGE = 'gen_ai.tool.message' as const;
109135

110136
/**
111137
* This event describes the user message passed to the GenAI model.
112138
*
113139
* @experimental This event is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
140+
*
141+
* @deprecated Chat history is reported on `gen_ai.input.messages` attribute on spans or `gen_ai.client.inference.operation.details` event.
114142
*/
115143
export const EVENT_GEN_AI_USER_MESSAGE = 'gen_ai.user.message' as const;
116144

0 commit comments

Comments
 (0)