Skip to content

Commit d69cb7a

Browse files
committed
feat: Bump semantic conventions to version 1.37.0
Also, update the jinja template for attributes to handle multi- line code comments.
1 parent 7047f09 commit d69cb7a

File tree

108 files changed

+2438
-1249
lines changed

Some content is hidden

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

108 files changed

+2438
-1249
lines changed

semantic_conventions/.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ inherit_from: ../contrib/rubocop.yml
22

33
AllCops:
44
NewCops: enable
5+
Exclude:
6+
- 'tmp/semconvrepo/**/*'
57

68
Bundler/OrderedGems:
79
Exclude:

semantic_conventions/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ task default: default_tasks
5050
desc 'update semantic conventions'
5151
task generate: %i[update_gem_version generate_semconv generate_require_rollups rubocop_autocorrect]
5252

53-
SPEC_VERSION = '1.36.0'
53+
SPEC_VERSION = '1.37.0'
5454
OTEL_WEAVER_VERSION = 'v0.17.1'
5555
semconv_source_dir = Pathname.new('./tmp/semconvrepo')
5656
semconv_output_dir = Pathname.new('./lib/opentelemetry/semconv')

semantic_conventions/lib/opentelemetry/semantic_conventions/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
module OpenTelemetry
88
module SemanticConventions
9-
VERSION = '1.36.0'
9+
VERSION = '1.37.0'
1010
end
1111
end

semantic_conventions/lib/opentelemetry/semconv/aspnetcore/attributes.rb

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ module SemConv
2323
module ASPNETCORE
2424
# @!group Attribute Names
2525

26-
# ASP.NET Core exception middleware handling result
26+
# ASP.NET Core exception middleware handling result.
2727
#
2828
# @note Stability Level: stable
2929
#
3030
# @example Sample Values
31-
# handled
32-
# unhandled
31+
# # handled
32+
# # unhandled
3333
#
3434
ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT = 'aspnetcore.diagnostics.exception.result'
3535

@@ -38,7 +38,7 @@ module ASPNETCORE
3838
# @note Stability Level: stable
3939
#
4040
# @example Sample Values
41-
# Contoso.MyHandler
41+
# # Contoso.MyHandler
4242
#
4343
ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE = 'aspnetcore.diagnostics.handler.type'
4444

@@ -47,9 +47,9 @@ module ASPNETCORE
4747
# @note Stability Level: stable
4848
#
4949
# @example Sample Values
50-
# fixed
51-
# sliding
52-
# token
50+
# # fixed
51+
# # sliding
52+
# # token
5353
#
5454
ASPNETCORE_RATE_LIMITING_POLICY = 'aspnetcore.rate_limiting.policy'
5555

@@ -58,8 +58,8 @@ module ASPNETCORE
5858
# @note Stability Level: stable
5959
#
6060
# @example Sample Values
61-
# acquired
62-
# request_canceled
61+
# # acquired
62+
# # request_canceled
6363
#
6464
ASPNETCORE_RATE_LIMITING_RESULT = 'aspnetcore.rate_limiting.result'
6565

@@ -68,7 +68,7 @@ module ASPNETCORE
6868
# @note Stability Level: stable
6969
#
7070
# @example Sample Values
71-
# true
71+
# # true
7272
#
7373
ASPNETCORE_REQUEST_IS_UNHANDLED = 'aspnetcore.request.is_unhandled'
7474

@@ -77,7 +77,7 @@ module ASPNETCORE
7777
# @note Stability Level: stable
7878
#
7979
# @example Sample Values
80-
# true
80+
# # true
8181
#
8282
ASPNETCORE_ROUTING_IS_FALLBACK = 'aspnetcore.routing.is_fallback'
8383

@@ -86,11 +86,20 @@ module ASPNETCORE
8686
# @note Stability Level: stable
8787
#
8888
# @example Sample Values
89-
# success
90-
# failure
89+
# # success
90+
# # failure
9191
#
9292
ASPNETCORE_ROUTING_MATCH_STATUS = 'aspnetcore.routing.match_status'
9393

94+
# A value that indicates whether the user is authenticated.
95+
#
96+
# @note Stability Level: stable
97+
#
98+
# @example Sample Values
99+
# # true
100+
#
101+
ASPNETCORE_USER_IS_AUTHENTICATED = 'aspnetcore.user.is_authenticated'
102+
94103
# @!endgroup
95104
end
96105
end

semantic_conventions/lib/opentelemetry/semconv/client/attributes.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ module CLIENT
3030
# @note Stability Level: stable
3131
#
3232
# @example Sample Values
33-
# client.example.com
34-
# 10.1.2.80
35-
# /tmp/my.sock
33+
# # client.example.com
34+
# # 10.1.2.80
35+
# # /tmp/my.sock
3636
#
3737
CLIENT_ADDRESS = 'client.address'
3838

@@ -43,7 +43,7 @@ module CLIENT
4343
# @note Stability Level: stable
4444
#
4545
# @example Sample Values
46-
# 65123
46+
# # 65123
4747
#
4848
CLIENT_PORT = 'client.port'
4949

semantic_conventions/lib/opentelemetry/semconv/code/attributes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ module CODE
6262
# @note Stability Level: stable
6363
#
6464
# @example Sample Values
65-
# com.example.MyHttpService.serveRequest
66-
# GuzzleHttp\Client::transfer
67-
# fopen
65+
# # com.example.MyHttpService.serveRequest
66+
# # GuzzleHttp\Client::transfer
67+
# # fopen
6868
#
6969
CODE_FUNCTION_NAME = 'code.function.name'
7070

semantic_conventions/lib/opentelemetry/semconv/db/attributes.rb

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ module DB
3838
# @note Stability Level: stable
3939
#
4040
# @example Sample Values
41-
# public.users
42-
# customers
41+
# # public.users
42+
# # customers
4343
#
4444
DB_COLLECTION_NAME = 'db.collection.name'
4545

@@ -52,8 +52,8 @@ module DB
5252
# @note Stability Level: stable
5353
#
5454
# @example Sample Values
55-
# customers
56-
# test.users
55+
# # customers
56+
# # test.users
5757
#
5858
DB_NAMESPACE = 'db.namespace'
5959

@@ -64,9 +64,9 @@ module DB
6464
# @note Stability Level: stable
6565
#
6666
# @example Sample Values
67-
# 2
68-
# 3
69-
# 4
67+
# # 2
68+
# # 3
69+
# # 4
7070
#
7171
DB_OPERATION_BATCH_SIZE = 'db.operation.batch.size'
7272

@@ -90,9 +90,9 @@ module DB
9090
# @note Stability Level: stable
9191
#
9292
# @example Sample Values
93-
# findAndModify
94-
# HMSET
95-
# SELECT
93+
# # findAndModify
94+
# # HMSET
95+
# # SELECT
9696
#
9797
DB_OPERATION_NAME = 'db.operation.name'
9898

@@ -111,9 +111,9 @@ module DB
111111
# @note Stability Level: stable
112112
#
113113
# @example Sample Values
114-
# SELECT wuser_table
115-
# INSERT shipping_details SELECT orders
116-
# get user by id
114+
# # SELECT wuser_table
115+
# # INSERT shipping_details SELECT orders
116+
# # get user by id
117117
#
118118
DB_QUERY_SUMMARY = 'db.query.summary'
119119

@@ -126,8 +126,8 @@ module DB
126126
# @note Stability Level: stable
127127
#
128128
# @example Sample Values
129-
# SELECT * FROM wuser_table where username = ?
130-
# SET mykey ?
129+
# # SELECT * FROM wuser_table where username = ?
130+
# # SET mykey ?
131131
#
132132
DB_QUERY_TEXT = 'db.query.text'
133133

@@ -139,10 +139,10 @@ module DB
139139
# @note Stability Level: stable
140140
#
141141
# @example Sample Values
142-
# 102
143-
# ORA-17002
144-
# 08P01
145-
# 404
142+
# # 102
143+
# # ORA-17002
144+
# # 08P01
145+
# # 404
146146
#
147147
DB_RESPONSE_STATUS_CODE = 'db.response.status_code'
148148

@@ -157,7 +157,7 @@ module DB
157157
# @note Stability Level: stable
158158
#
159159
# @example Sample Values
160-
# GetCustomer
160+
# # GetCustomer
161161
#
162162
DB_STORED_PROCEDURE_NAME = 'db.stored_procedure.name'
163163

semantic_conventions/lib/opentelemetry/semconv/dotnet/attributes.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ module DOTNET
2828
# @note Stability Level: stable
2929
#
3030
# @example Sample Values
31-
# gen0
32-
# gen1
33-
# gen2
31+
# # gen0
32+
# # gen1
33+
# # gen2
3434
#
3535
DOTNET_GC_HEAP_GENERATION = 'dotnet.gc.heap.generation'
3636

semantic_conventions/lib/opentelemetry/semconv/error/attributes.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ module ERROR
4848
# @note Stability Level: stable
4949
#
5050
# @example Sample Values
51-
# timeout
52-
# java.net.UnknownHostException
53-
# server_certificate_invalid
54-
# 500
51+
# # timeout
52+
# # java.net.UnknownHostException
53+
# # server_certificate_invalid
54+
# # 500
5555
#
5656
ERROR_TYPE = 'error.type'
5757

semantic_conventions/lib/opentelemetry/semconv/exception/attributes.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ module EXCEPTION
3434
# @note Stability Level: stable
3535
#
3636
# @example Sample Values
37-
# Division by zero
38-
# Can't convert 'int' object to str implicitly
37+
# # Division by zero
38+
# # Can't convert 'int' object to str implicitly
3939
#
4040
EXCEPTION_MESSAGE = 'exception.message'
4141

@@ -53,8 +53,8 @@ module EXCEPTION
5353
# @note Stability Level: stable
5454
#
5555
# @example Sample Values
56-
# java.net.ConnectException
57-
# OSError
56+
# # java.net.ConnectException
57+
# # OSError
5858
#
5959
EXCEPTION_TYPE = 'exception.type'
6060

0 commit comments

Comments
 (0)