async-http 0.90.0 → 0.90.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4deafcd4307a062ea1c30e318ad047ca05189a901b9a992dad49229bd1b29f24
4
- data.tar.gz: 8525c40739af32f69dab67e3c813660057831b09ecfe2927e346dd4a6b585b2c
3
+ metadata.gz: 9f3d3f7847e4ca1d36ea14f2e2a429aaee69540f417eccde36d0e78b046cdd04
4
+ data.tar.gz: 72254daf856acd1339850a6af190dc3aa302483b00a31891bbc0bcbb41edbe4d
5
5
  SHA512:
6
- metadata.gz: d8da92f52774dc4ada4701cea046fed2c948603f8327e68c5dbbbe0618eeb0b9a0d3fe3fe197c0ba3fbdaf95916375930a73f65e4121e7021ea0e95f236d7205
7
- data.tar.gz: f01f486824e2345b637344235d710e727a422fa068d5a376497966052ec8b791edde1725e118489061e52b85ac2aa3b671f81bf5e5115925d8c3e16314540690
6
+ metadata.gz: d116c25e3ef63211b53222cc2baf36c7469b4da0526d464a30981bbde0e18abdf1860bb4f84a2ac19e89a4ea9ed1f43698e08139214773092e2dd82f74cb8233
7
+ data.tar.gz: 5550db7a5ddca2f6e0512184a5706504226315337af5eaa357a1f9756afcc01718ce09e00e06cd845c52c19d3ec45180fbbcf4f6447942f767cf9fc73dd29e41
checksums.yaml.gz.sig CHANGED
Binary file
@@ -94,7 +94,7 @@ module Async
94
94
  attributes["http.protocol"] = protocol
95
95
  end
96
96
 
97
- Traces.trace("async.http.server.call", resource: "#{request.method} #{request.path}", attributes: attributes) do |span|
97
+ Traces.trace("async.http.server.call", attributes: attributes) do |span|
98
98
  super.tap do |response|
99
99
  if status = response&.status
100
100
  span["http.status_code"] = status
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module HTTP
8
- VERSION = "0.90.0"
8
+ VERSION = "0.90.2"
9
9
  end
10
10
  end
@@ -8,19 +8,19 @@ require "metrics/provider"
8
8
 
9
9
  Metrics::Provider(Async::HTTP::Client) do
10
10
  ASYNC_HTTP_CLIENT_REQUEST_INITIATED = Metrics.metric("async.http.client.request.initiated", :counter, description: "The number of HTTP client requests initiated.")
11
- ASYNC_HTTP_CLIENT_REQUEST_COMPLETED = Metrics.metric("async.http.client.request.completed", :counter, description: "The number of HTTP client requests completed.")
12
-
11
+ ASYNC_HTTP_CLIENT_REQUEST_FINISHED = Metrics.metric("async.http.client.request.finished", :counter, description: "The number of HTTP client requests finished.")
12
+
13
13
  def make_response(request, connection, attempt)
14
14
  ASYNC_HTTP_CLIENT_REQUEST_INITIATED.emit(1, tags: ["method:#{request.method}"])
15
15
 
16
16
  response = super(request, connection, attempt)
17
17
 
18
- ASYNC_HTTP_CLIENT_REQUEST_COMPLETED.emit(1, tags: ["method:#{request.method}", "status:#{response.status}"])
18
+ ASYNC_HTTP_CLIENT_REQUEST_FINISHED.emit(1, tags: ["method:#{request.method}", "status:#{response.status}"])
19
19
 
20
20
  return response
21
21
  ensure
22
22
  unless response
23
- ASYNC_HTTP_CLIENT_REQUEST_COMPLETED.emit(1, tags: ["method:#{request.method}", "status:failed"])
23
+ ASYNC_HTTP_CLIENT_REQUEST_FINISHED.emit(1, tags: ["method:#{request.method}", "status:failed"])
24
24
  end
25
25
  end
26
26
  end
@@ -8,20 +8,20 @@ require "metrics/provider"
8
8
 
9
9
  Metrics::Provider(Async::HTTP::Server) do
10
10
  ASYNC_HTTP_SERVER_REQUEST_INITIATED = Metrics.metric("async.http.server.request.initiated", :counter, description: "The number of HTTP server requests initiated.")
11
- ASYNC_HTTP_SERVER_REQUEST_COMPLETED = Metrics.metric("async.http.server.request.completed", :counter, description: "The number of HTTP server requests completed.")
11
+ ASYNC_HTTP_SERVER_REQUEST_FINISHED = Metrics.metric("async.http.server.request.finished", :counter, description: "The number of HTTP server requests finished.")
12
12
 
13
13
  def call(request)
14
14
  ASYNC_HTTP_SERVER_REQUEST_INITIATED.emit(1, tags: ["method:#{request.method}"])
15
15
 
16
16
  if response = super(request)
17
- ASYNC_HTTP_SERVER_REQUEST_COMPLETED.emit(1, tags: ["method:#{request.method}", "status:#{response.status}"])
17
+ ASYNC_HTTP_SERVER_REQUEST_FINISHED.emit(1, tags: ["method:#{request.method}", "status:#{response.status}"])
18
18
  return response
19
19
  else
20
20
  return nil
21
21
  end
22
22
  ensure
23
23
  unless response
24
- ASYNC_HTTP_SERVER_REQUEST_COMPLETED.emit(1, tags: ["method:#{request.method}", "status:failed"])
24
+ ASYNC_HTTP_SERVER_REQUEST_FINISHED.emit(1, tags: ["method:#{request.method}", "status:failed"])
25
25
  end
26
26
  end
27
27
  end
data/readme.md CHANGED
@@ -16,6 +16,10 @@ Please see the [project documentation](https://socketry.github.io/async-http/) f
16
16
 
17
17
  Please see the [project releases](https://socketry.github.io/async-http/releases/index) for all releases.
18
18
 
19
+ ### v0.90.2
20
+
21
+ - Don't emit `resource:` keyword argument in traces - it's unsupported by OpenTelemetry.
22
+
19
23
  ### v0.88.0
20
24
 
21
25
  - [Support custom protocols with options](https://socketry.github.io/async-http/releases/index#support-custom-protocols-with-options)
@@ -55,10 +59,6 @@ Please see the [project releases](https://socketry.github.io/async-http/releases
55
59
 
56
60
  - Better handling of HTTP/1 \<-\> HTTP/2 proxying, specifically upgrade/CONNECT requests.
57
61
 
58
- ### v0.74.0
59
-
60
- - [`Async::HTTP::Internet` accepts keyword arguments](https://socketry.github.io/async-http/releases/index#async::http::internet-accepts-keyword-arguments)
61
-
62
62
  ## See Also
63
63
 
64
64
  - [benchmark-http](https://github.com/socketry/benchmark-http) — A benchmarking tool to report on web server concurrency.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.90.2
4
+
5
+ - Don't emit `resource:` keyword argument in traces - it's unsupported by OpenTelemetry.
6
+
3
7
  ## v0.88.0
4
8
 
5
9
  ### Support custom protocols with options
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.0
4
+ version: 0.90.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file