mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -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:
|
||||
|
||||
{[
|
||||
type extended_confg =
|
||||
{ new_field: string
|
||||
; common: t
|
||||
}
|
||||
type extended_config = {
|
||||
new_field: string;
|
||||
common: t;
|
||||
}
|
||||
|
||||
let make : (new_field:string -> unit) make =
|
||||
Env.make (fun common ~new_field () -> {new_field; common})
|
||||
let make : (new_field:string -> unit -> extended_config) make =
|
||||
Env.make (fun common ~new_field () -> { new_field; common })
|
||||
|
||||
let _example : extended_config =
|
||||
make ~new_field:"foo" ~url_traces:"foo/bar" ~debug:true ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue