mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
remove unused argument for Logger
This commit is contained in:
parent
dbc4c0b133
commit
79b75cd79b
1 changed files with 2 additions and 2 deletions
|
|
@ -19,11 +19,11 @@ let get_main () : t =
|
|||
| None -> dummy
|
||||
| Some e -> e.emit_logs
|
||||
|
||||
let emit ?attrs:_ (logs : Log_record.t list) : unit =
|
||||
let (emit [@deprecated "use an explicit Logger.t"]) =
|
||||
fun (logs : Log_record.t list) : unit ->
|
||||
match Main_exporter.get () with
|
||||
| None -> ()
|
||||
| Some exp -> Exporter.send_logs exp logs
|
||||
[@@deprecated "use an explicit Logger.t"]
|
||||
|
||||
(** An emitter that uses the current {!Main_exporter} *)
|
||||
let dynamic_forward_to_main_exporter : t =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue