mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
deploy: 8779823fda
This commit is contained in:
parent
0c811a4112
commit
e51c86ad7d
8 changed files with 30 additions and 12 deletions
|
|
@ -1,4 +1,10 @@
|
|||
# v6.1.0 (2025-03-03)
|
||||
## v6.1.1 (2025-05-28)
|
||||
|
||||
- cohttp-mirage: make client usable again -- this fixes a regression introduced
|
||||
by #1080 (@Firobe, review by @edwintorok, #1110)
|
||||
- rename main function on README example (@Unn4m3DD, #1097)
|
||||
|
||||
## v6.1.0 (2025-03-03)
|
||||
|
||||
- cohttp-lwt-unix: Add http/https proxy support for client requests (@art-w @MisterDA, #1080)
|
||||
- cohttp-mirage: Support conduit 8.0.0 (@hannesm, #1104)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ open Lwt
|
|||
open Cohttp
|
||||
open Cohttp_lwt_unix
|
||||
|
||||
let body =
|
||||
let main =
|
||||
Client.get (Uri.of_string "https://www.reddit.com/") >>= fun (resp, body) ->
|
||||
let code = resp |> Response.status |> Code.code_of_status in
|
||||
Printf.printf "Response code: %d\n" code;
|
||||
|
|
@ -89,7 +89,7 @@ let body =
|
|||
body
|
||||
|
||||
let () =
|
||||
let body = Lwt_main.run body in
|
||||
let body = Lwt_main.run main in
|
||||
print_endline ("Received body\n" ^ body)
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
# v6.1.0 (2025-03-03)
|
||||
## v6.1.1 (2025-05-28)
|
||||
|
||||
- cohttp-mirage: make client usable again -- this fixes a regression introduced
|
||||
by #1080 (@Firobe, review by @edwintorok, #1110)
|
||||
- rename main function on README example (@Unn4m3DD, #1097)
|
||||
|
||||
## v6.1.0 (2025-03-03)
|
||||
|
||||
- cohttp-lwt-unix: Add http/https proxy support for client requests (@art-w @MisterDA, #1080)
|
||||
- cohttp-mirage: Support conduit 8.0.0 (@hannesm, #1104)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ open Lwt
|
|||
open Cohttp
|
||||
open Cohttp_lwt_unix
|
||||
|
||||
let body =
|
||||
let main =
|
||||
Client.get (Uri.of_string "https://www.reddit.com/") >>= fun (resp, body) ->
|
||||
let code = resp |> Response.status |> Code.code_of_status in
|
||||
Printf.printf "Response code: %d\n" code;
|
||||
|
|
@ -89,7 +89,7 @@ let body =
|
|||
body
|
||||
|
||||
let () =
|
||||
let body = Lwt_main.run body in
|
||||
let body = Lwt_main.run main in
|
||||
print_endline ("Received body\n" ^ body)
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
# v6.1.0 (2025-03-03)
|
||||
## v6.1.1 (2025-05-28)
|
||||
|
||||
- cohttp-mirage: make client usable again -- this fixes a regression introduced
|
||||
by #1080 (@Firobe, review by @edwintorok, #1110)
|
||||
- rename main function on README example (@Unn4m3DD, #1097)
|
||||
|
||||
## v6.1.0 (2025-03-03)
|
||||
|
||||
- cohttp-lwt-unix: Add http/https proxy support for client requests (@art-w @MisterDA, #1080)
|
||||
- cohttp-mirage: Support conduit 8.0.0 (@hannesm, #1104)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ open Lwt
|
|||
open Cohttp
|
||||
open Cohttp_lwt_unix
|
||||
|
||||
let body =
|
||||
let main =
|
||||
Client.get (Uri.of_string "https://www.reddit.com/") >>= fun (resp, body) ->
|
||||
let code = resp |> Response.status |> Code.code_of_status in
|
||||
Printf.printf "Response code: %d\n" code;
|
||||
|
|
@ -89,7 +89,7 @@ let body =
|
|||
body
|
||||
|
||||
let () =
|
||||
let body = Lwt_main.run body in
|
||||
let body = Lwt_main.run main in
|
||||
print_endline ("Received body\n" ^ body)
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -24,10 +24,10 @@
|
|||
unit</span></code></div><div class="spec-doc"><p>Sync emitter.</p><p>This instructs the collector to forward the spans to some backend at a later point.</p><p><b>NOTE</b> be careful not to call this inside a Gc alarm, as it can cause deadlocks.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-scope"><a href="#type-scope" class="anchor"></a><code><span><span class="keyword">type</span> scope</span><span> = <a href="../../../opentelemetry/Opentelemetry/Scope/index.html#type-t">Opentelemetry.Scope.t</a></span><span> = </span><span>{</span></code><ol><li id="type-scope.trace_id" class="def record field anchored"><a href="#type-scope.trace_id" class="anchor"></a><code><span>trace_id : <a href="../../../opentelemetry/Opentelemetry/Trace_id/index.html#type-t">Opentelemetry.Trace_id.t</a>;</span></code></li><li id="type-scope.span_id" class="def record field anchored"><a href="#type-scope.span_id" class="anchor"></a><code><span>span_id : <a href="../../../opentelemetry/Opentelemetry/Span_id/index.html#type-t">Opentelemetry.Span_id.t</a>;</span></code></li><li id="type-scope.items" class="def record field anchored"><a href="#type-scope.items" class="anchor"></a><code><span><span class="keyword">mutable</span> items : <a href="../../../opentelemetry/Opentelemetry/Scope/index.html#type-item_list">Opentelemetry.Scope.item_list</a>;</span></code></li></ol><code><span>}</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.t</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_event"><a href="#val-add_event" class="anchor"></a><code><span><span class="keyword">val</span> add_event :
|
||||
<span><a href="../../../opentelemetry/Opentelemetry/Scope/index.html#type-t">Opentelemetry.Scope.t</a> <span class="arrow">-></span></span>
|
||||
<span><span>(<span>unit <span class="arrow">-></span></span> <a href="../../../opentelemetry/Opentelemetry/Event/index.html#type-t">Opentelemetry.Event.t</a>)</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.add_event</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_attrs"><a href="#val-add_attrs" class="anchor"></a><code><span><span class="keyword">val</span> add_attrs :
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_attrs"><a href="#val-add_attrs" class="anchor"></a><code><span><span class="keyword">val</span> add_attrs :
|
||||
<span><a href="../../../opentelemetry/Opentelemetry/Scope/index.html#type-t">Opentelemetry.Scope.t</a> <span class="arrow">-></span></span>
|
||||
<span><span>(<span>unit <span class="arrow">-></span></span> <span><a href="../../../opentelemetry/Opentelemetry/index.html#type-key_value">Opentelemetry.key_value</a> list</span>)</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.add_attrs</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_'"><a href="#val-with_'" class="anchor"></a><code><span><span class="keyword">val</span> with_' :
|
||||
unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_'"><a href="#val-with_'" class="anchor"></a><code><span><span class="keyword">val</span> with_' :
|
||||
<span><span class="optlabel">?force_new_trace_id</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?trace_state</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?service_name</span>:string <span class="arrow">-></span></span>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<span><span>| `String</span> of string</span> ]</span>)</span>
|
||||
list</span> <span class="arrow">-></span></span>
|
||||
<span><span><a href="#type-span">span</a> list</span> <span class="arrow">-></span></span>
|
||||
unit</span></code></div><div class="spec-doc"><p>Sync emitter.</p><p>This instructs the collector to forward the spans to some backend at a later point.</p><p><b>NOTE</b> be careful not to call this inside a Gc alarm, as it can cause deadlocks.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-scope"><a href="#type-scope" class="anchor"></a><code><span><span class="keyword">type</span> scope</span><span> = <a href="../Scope/index.html#type-t">Scope.t</a></span><span> = </span><span>{</span></code><ol><li id="type-scope.trace_id" class="def record field anchored"><a href="#type-scope.trace_id" class="anchor"></a><code><span>trace_id : <a href="../Trace_id/index.html#type-t">Trace_id.t</a>;</span></code></li><li id="type-scope.span_id" class="def record field anchored"><a href="#type-scope.span_id" class="anchor"></a><code><span>span_id : <a href="../Span_id/index.html#type-t">Span_id.t</a>;</span></code></li><li id="type-scope.items" class="def record field anchored"><a href="#type-scope.items" class="anchor"></a><code><span><span class="keyword">mutable</span> items : <a href="../Scope/index.html#type-item_list">Scope.item_list</a>;</span></code></li></ol><code><span>}</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.t</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_event"><a href="#val-add_event" class="anchor"></a><code><span><span class="keyword">val</span> add_event : <span><a href="../Scope/index.html#type-t">Scope.t</a> <span class="arrow">-></span></span> <span><span>(<span>unit <span class="arrow">-></span></span> <a href="../Event/index.html#type-t">Event.t</a>)</span> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.add_event</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_attrs"><a href="#val-add_attrs" class="anchor"></a><code><span><span class="keyword">val</span> add_attrs : <span><a href="../Scope/index.html#type-t">Scope.t</a> <span class="arrow">-></span></span> <span><span>(<span>unit <span class="arrow">-></span></span> <span><a href="../index.html#type-key_value">key_value</a> list</span>)</span> <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.add_attrs</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_'"><a href="#val-with_'" class="anchor"></a><code><span><span class="keyword">val</span> with_' :
|
||||
unit</span></code></div><div class="spec-doc"><p>Sync emitter.</p><p>This instructs the collector to forward the spans to some backend at a later point.</p><p><b>NOTE</b> be careful not to call this inside a Gc alarm, as it can cause deadlocks.</p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-scope"><a href="#type-scope" class="anchor"></a><code><span><span class="keyword">type</span> scope</span><span> = <a href="../Scope/index.html#type-t">Scope.t</a></span><span> = </span><span>{</span></code><ol><li id="type-scope.trace_id" class="def record field anchored"><a href="#type-scope.trace_id" class="anchor"></a><code><span>trace_id : <a href="../Trace_id/index.html#type-t">Trace_id.t</a>;</span></code></li><li id="type-scope.span_id" class="def record field anchored"><a href="#type-scope.span_id" class="anchor"></a><code><span>span_id : <a href="../Span_id/index.html#type-t">Span_id.t</a>;</span></code></li><li id="type-scope.items" class="def record field anchored"><a href="#type-scope.items" class="anchor"></a><code><span><span class="keyword">mutable</span> items : <a href="../Scope/index.html#type-item_list">Scope.item_list</a>;</span></code></li></ol><code><span>}</span></code></div><div class="spec-doc"><ul class="at-tags"><li class="deprecated"><span class="at-tag">deprecated</span> use Scope.t</li></ul></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_event"><a href="#val-add_event" class="anchor"></a><code><span><span class="keyword">val</span> add_event : <span><a href="../Scope/index.html#type-t">Scope.t</a> <span class="arrow">-></span></span> <span><span>(<span>unit <span class="arrow">-></span></span> <a href="../Event/index.html#type-t">Event.t</a>)</span> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-add_attrs"><a href="#val-add_attrs" class="anchor"></a><code><span><span class="keyword">val</span> add_attrs : <span><a href="../Scope/index.html#type-t">Scope.t</a> <span class="arrow">-></span></span> <span><span>(<span>unit <span class="arrow">-></span></span> <span><a href="../index.html#type-key_value">key_value</a> list</span>)</span> <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-with_'"><a href="#val-with_'" class="anchor"></a><code><span><span class="keyword">val</span> with_' :
|
||||
<span><span class="optlabel">?force_new_trace_id</span>:bool <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?trace_state</span>:string <span class="arrow">-></span></span>
|
||||
<span><span class="optlabel">?service_name</span>:string <span class="arrow">-></span></span>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue