mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 20:07:55 -04:00
Fix documentation example
This commit is contained in:
parent
48926c25e5
commit
08c6f32efe
1 changed files with 6 additions and 6 deletions
|
|
@ -105,13 +105,13 @@ module type ENV = sig
|
||||||
more specific field like so:
|
more specific field like so:
|
||||||
|
|
||||||
{[
|
{[
|
||||||
type extended_confg =
|
type extended_config = {
|
||||||
{ new_field: string
|
new_field: string;
|
||||||
; common: t
|
common: t;
|
||||||
}
|
}
|
||||||
|
|
||||||
let make : (new_field:string -> unit) make =
|
let make : (new_field:string -> unit -> extended_config) make =
|
||||||
Env.make (fun common ~new_field () -> {new_field; common})
|
Env.make (fun common ~new_field () -> { new_field; common })
|
||||||
|
|
||||||
let _example : extended_config =
|
let _example : extended_config =
|
||||||
make ~new_field:"foo" ~url_traces:"foo/bar" ~debug:true ()
|
make ~new_field:"foo" ~url_traces:"foo/bar" ~debug:true ()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue