Skip to content
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
3 changes: 3 additions & 0 deletions semantic_conventions/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ inherit_from: ../contrib/rubocop.yml

AllCops:
NewCops: enable
Exclude:
- 'tmp/semconvrepo/**/*'
- 'vendor/**/*'

Bundler/OrderedGems:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion semantic_conventions/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ task default: default_tasks
desc 'update semantic conventions'
task generate: %i[update_gem_version generate_semconv generate_require_rollups rubocop_autocorrect]

SPEC_VERSION = '1.36.0'
SPEC_VERSION = '1.37.0'
OTEL_WEAVER_VERSION = 'v0.17.1'
semconv_source_dir = Pathname.new('./tmp/semconvrepo')
semconv_output_dir = Pathname.new('./lib/opentelemetry/semconv')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

module OpenTelemetry
module SemanticConventions
VERSION = '1.36.0'
VERSION = '1.37.0'
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ module SemConv
module ASPNETCORE
# @!group Attribute Names

# ASP.NET Core exception middleware handling result
# ASP.NET Core exception middleware handling result.
#
# @note Stability Level: stable
#
# @example Sample Values
# handled
# unhandled
# # handled
# # unhandled
#
ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT = 'aspnetcore.diagnostics.exception.result'

Expand All @@ -38,7 +38,7 @@ module ASPNETCORE
# @note Stability Level: stable
#
# @example Sample Values
# Contoso.MyHandler
# # Contoso.MyHandler
#
ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE = 'aspnetcore.diagnostics.handler.type'

Expand All @@ -47,9 +47,9 @@ module ASPNETCORE
# @note Stability Level: stable
#
# @example Sample Values
# fixed
# sliding
# token
# # fixed
# # sliding
# # token
#
ASPNETCORE_RATE_LIMITING_POLICY = 'aspnetcore.rate_limiting.policy'

Expand All @@ -58,8 +58,8 @@ module ASPNETCORE
# @note Stability Level: stable
#
# @example Sample Values
# acquired
# request_canceled
# # acquired
# # request_canceled
#
ASPNETCORE_RATE_LIMITING_RESULT = 'aspnetcore.rate_limiting.result'

Expand All @@ -68,7 +68,7 @@ module ASPNETCORE
# @note Stability Level: stable
#
# @example Sample Values
# true
# # true
#
ASPNETCORE_REQUEST_IS_UNHANDLED = 'aspnetcore.request.is_unhandled'

Expand All @@ -77,7 +77,7 @@ module ASPNETCORE
# @note Stability Level: stable
#
# @example Sample Values
# true
# # true
#
ASPNETCORE_ROUTING_IS_FALLBACK = 'aspnetcore.routing.is_fallback'

Expand All @@ -86,11 +86,20 @@ module ASPNETCORE
# @note Stability Level: stable
#
# @example Sample Values
# success
# failure
# # success
# # failure
#
ASPNETCORE_ROUTING_MATCH_STATUS = 'aspnetcore.routing.match_status'

# A value that indicates whether the user is authenticated.
#
# @note Stability Level: stable
#
# @example Sample Values
# # true
#
ASPNETCORE_USER_IS_AUTHENTICATED = 'aspnetcore.user.is_authenticated'

# @!endgroup
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ module CLIENT
# @note Stability Level: stable
#
# @example Sample Values
# client.example.com
# 10.1.2.80
# /tmp/my.sock
# # client.example.com
# # 10.1.2.80
# # /tmp/my.sock
#
CLIENT_ADDRESS = 'client.address'

Expand All @@ -43,7 +43,7 @@ module CLIENT
# @note Stability Level: stable
#
# @example Sample Values
# 65123
# # 65123
#
CLIENT_PORT = 'client.port'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ module CODE
# @note Stability Level: stable
#
# @example Sample Values
# com.example.MyHttpService.serveRequest
# GuzzleHttp\Client::transfer
# fopen
# # com.example.MyHttpService.serveRequest
# # GuzzleHttp\Client::transfer
# # fopen
#
CODE_FUNCTION_NAME = 'code.function.name'

Expand Down
40 changes: 20 additions & 20 deletions semantic_conventions/lib/opentelemetry/semconv/db/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# public.users
# customers
# # public.users
# # customers
#
DB_COLLECTION_NAME = 'db.collection.name'

Expand All @@ -52,8 +52,8 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# customers
# test.users
# # customers
# # test.users
#
DB_NAMESPACE = 'db.namespace'

Expand All @@ -64,9 +64,9 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# 2
# 3
# 4
# # 2
# # 3
# # 4
#
DB_OPERATION_BATCH_SIZE = 'db.operation.batch.size'

Expand All @@ -90,9 +90,9 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# findAndModify
# HMSET
# SELECT
# # findAndModify
# # HMSET
# # SELECT
#
DB_OPERATION_NAME = 'db.operation.name'

Expand All @@ -111,9 +111,9 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# SELECT wuser_table
# INSERT shipping_details SELECT orders
# get user by id
# # SELECT wuser_table
# # INSERT shipping_details SELECT orders
# # get user by id
#
DB_QUERY_SUMMARY = 'db.query.summary'

Expand All @@ -126,8 +126,8 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# SELECT * FROM wuser_table where username = ?
# SET mykey ?
# # SELECT * FROM wuser_table where username = ?
# # SET mykey ?
#
DB_QUERY_TEXT = 'db.query.text'

Expand All @@ -139,10 +139,10 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# 102
# ORA-17002
# 08P01
# 404
# # 102
# # ORA-17002
# # 08P01
# # 404
#
DB_RESPONSE_STATUS_CODE = 'db.response.status_code'

Expand All @@ -157,7 +157,7 @@ module DB
# @note Stability Level: stable
#
# @example Sample Values
# GetCustomer
# # GetCustomer
#
DB_STORED_PROCEDURE_NAME = 'db.stored_procedure.name'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ module DOTNET
# @note Stability Level: stable
#
# @example Sample Values
# gen0
# gen1
# gen2
# # gen0
# # gen1
# # gen2
#
DOTNET_GC_HEAP_GENERATION = 'dotnet.gc.heap.generation'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ module ERROR
# @note Stability Level: stable
#
# @example Sample Values
# timeout
# java.net.UnknownHostException
# server_certificate_invalid
# 500
# # timeout
# # java.net.UnknownHostException
# # server_certificate_invalid
# # 500
#
ERROR_TYPE = 'error.type'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ module EXCEPTION
# @note Stability Level: stable
#
# @example Sample Values
# Division by zero
# Can't convert 'int' object to str implicitly
# # Division by zero
# # Can't convert 'int' object to str implicitly
#
EXCEPTION_MESSAGE = 'exception.message'

Expand All @@ -53,8 +53,8 @@ module EXCEPTION
# @note Stability Level: stable
#
# @example Sample Values
# java.net.ConnectException
# OSError
# # java.net.ConnectException
# # OSError
#
EXCEPTION_TYPE = 'exception.type'

Expand Down
30 changes: 15 additions & 15 deletions semantic_conventions/lib/opentelemetry/semconv/http/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ module HTTP
# @note Stability Level: stable
#
# @example Sample Values
# ["application/json"]
# ["1.2.3.4", "1.2.3.5"]
#
# # application/json
# # 1.2.3.4
# 1.2.3.5
HTTP_REQUEST_HEADER_LAMBDA = ->(key) { "http.request.header.#{key}" }

# HTTP request method.
Expand All @@ -76,9 +76,9 @@ module HTTP
# @note Stability Level: stable
#
# @example Sample Values
# GET
# POST
# HEAD
# # GET
# # POST
# # HEAD
#
HTTP_REQUEST_METHOD = 'http.request.method'

Expand All @@ -87,9 +87,9 @@ module HTTP
# @note Stability Level: stable
#
# @example Sample Values
# GeT
# ACL
# foo
# # GeT
# # ACL
# # foo
#
HTTP_REQUEST_METHOD_ORIGINAL = 'http.request.method_original'

Expand Down Expand Up @@ -131,17 +131,17 @@ module HTTP
# @note Stability Level: stable
#
# @example Sample Values
# ["application/json"]
# ["abc", "def"]
#
# # application/json
# # abc
# def
HTTP_RESPONSE_HEADER_LAMBDA = ->(key) { "http.response.header.#{key}" }

# [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).
#
# @note Stability Level: stable
#
# @example Sample Values
# 200
# # 200
#
HTTP_RESPONSE_STATUS_CODE = 'http.response.status_code'

Expand All @@ -153,8 +153,8 @@ module HTTP
# @note Stability Level: stable
#
# @example Sample Values
# /users/:userID?
# {controller}/{action}/{id?}
# # /users/:userID?
# # {controller}/{action}/{id?}
#
HTTP_ROUTE = 'http.route'

Expand Down
Loading
Loading