From 6a468594e0fdf7b285990c27783ed66a8fb83804 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 1 Apr 2026 16:04:46 -0400 Subject: [PATCH] preparing for 0.90 --- dune-project | 4 ++-- opentelemetry-client-cohttp-eio.opam | 8 ++++---- opentelemetry-client-cohttp-lwt.opam | 8 ++++---- opentelemetry-client-ocurl-lwt.opam | 8 ++++---- opentelemetry-client-ocurl.opam | 8 ++++---- opentelemetry-client.opam | 8 ++++---- opentelemetry-cohttp-lwt.opam | 8 ++++---- opentelemetry-logs.opam | 8 ++++---- opentelemetry-lwt.opam | 8 ++++---- opentelemetry.opam | 8 ++++---- .../opentelemetry_client_ocurl_lwt.mli | 2 +- src/client-ocurl/opentelemetry_client_ocurl.mli | 4 ++-- src/client/emitter_limit_interval.mli | 2 +- src/client/exporter_config.mli | 4 ++-- src/core/span.mli | 2 +- src/lib/emitter_batch.mli | 2 +- src/lib/globals.ml | 2 +- src/lib/opentelemetry.ml | 16 ++++++++-------- src/lib/self_debug.mli | 2 +- src/trace/opentelemetry_trace.mli | 4 ++-- 20 files changed, 58 insertions(+), 58 deletions(-) diff --git a/dune-project b/dune-project index 1883c056..f62842d6 100644 --- a/dune-project +++ b/dune-project @@ -5,9 +5,9 @@ (generate_opam_files true) (source - (github imandra-ai/ocaml-opentelemetry)) + (github ocaml-tracing/ocaml-opentelemetry)) -(version 0.12) +(version 0.90) (implicit_transitive_deps false) diff --git a/opentelemetry-client-cohttp-eio.opam b/opentelemetry-client-cohttp-eio.opam index 31772088..d01ea2b8 100644 --- a/opentelemetry-client-cohttp-eio.opam +++ b/opentelemetry-client-cohttp-eio.opam @@ -1,12 +1,12 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Collector client for opentelemetry, using cohttp + eio" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "5.00"} @@ -40,4 +40,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-client-cohttp-lwt.opam b/opentelemetry-client-cohttp-lwt.opam index cc006c7e..e483100d 100644 --- a/opentelemetry-client-cohttp-lwt.opam +++ b/opentelemetry-client-cohttp-lwt.opam @@ -1,12 +1,12 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Collector client for opentelemetry, using cohttp + lwt" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -38,4 +38,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-client-ocurl-lwt.opam b/opentelemetry-client-ocurl-lwt.opam index 3587169f..c8027920 100644 --- a/opentelemetry-client-ocurl-lwt.opam +++ b/opentelemetry-client-ocurl-lwt.opam @@ -1,12 +1,12 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Collector client for opentelemetry, using ezcurl-lwt" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -38,4 +38,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-client-ocurl.opam b/opentelemetry-client-ocurl.opam index f52efce0..5592cbbb 100644 --- a/opentelemetry-client-ocurl.opam +++ b/opentelemetry-client-ocurl.opam @@ -1,12 +1,12 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Collector client for opentelemetry, using http + ezcurl" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -35,4 +35,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-client.opam b/opentelemetry-client.opam index 86ea05b1..13ab4e72 100644 --- a/opentelemetry-client.opam +++ b/opentelemetry-client.opam @@ -1,13 +1,13 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Client SDK for https://opentelemetry.io" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" tags: ["tracing" "opentelemetry" "sdk"] -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "opentelemetry" {= version} @@ -29,4 +29,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-cohttp-lwt.opam b/opentelemetry-cohttp-lwt.opam index da837ae5..74e2e1a6 100644 --- a/opentelemetry-cohttp-lwt.opam +++ b/opentelemetry-cohttp-lwt.opam @@ -1,12 +1,12 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Opentelemetry tracing for Cohttp HTTP servers" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -33,4 +33,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-logs.opam b/opentelemetry-logs.opam index fa8f4743..32e574e6 100644 --- a/opentelemetry-logs.opam +++ b/opentelemetry-logs.opam @@ -1,12 +1,12 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Opentelemetry-based reporter for Logs" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -33,4 +33,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry-lwt.opam b/opentelemetry-lwt.opam index 513ec58f..ee2369de 100644 --- a/opentelemetry-lwt.opam +++ b/opentelemetry-lwt.opam @@ -1,13 +1,13 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Lwt-compatible instrumentation for https://opentelemetry.io" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" tags: ["instrumentation" "tracing" "opentelemetry" "datadog" "lwt"] -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -33,4 +33,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/opentelemetry.opam b/opentelemetry.opam index 2c8de900..a0121247 100644 --- a/opentelemetry.opam +++ b/opentelemetry.opam @@ -1,14 +1,14 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" -version: "0.12" +version: "0.90" synopsis: "Core library for instrumentation and serialization for https://opentelemetry.io" maintainer: ["ocaml-tracing"] authors: ["ocaml-tracing" "ELLIOTTCABLE " "the imandra team"] license: "MIT" tags: ["instrumentation" "tracing" "opentelemetry" "datadog" "jaeger"] -homepage: "https://github.com/imandra-ai/ocaml-opentelemetry" -bug-reports: "https://github.com/imandra-ai/ocaml-opentelemetry/issues" +homepage: "https://github.com/ocaml-tracing/ocaml-opentelemetry" +bug-reports: "https://github.com/ocaml-tracing/ocaml-opentelemetry/issues" depends: [ "dune" {>= "3.11"} "ocaml" {>= "4.08"} @@ -42,4 +42,4 @@ build: [ "@doc" {with-doc} ] ] -dev-repo: "git+https://github.com/imandra-ai/ocaml-opentelemetry.git" +dev-repo: "git+https://github.com/ocaml-tracing/ocaml-opentelemetry.git" diff --git a/src/client-ocurl-lwt/opentelemetry_client_ocurl_lwt.mli b/src/client-ocurl-lwt/opentelemetry_client_ocurl_lwt.mli index 46ad1fab..6228f212 100644 --- a/src/client-ocurl-lwt/opentelemetry_client_ocurl_lwt.mli +++ b/src/client-ocurl-lwt/opentelemetry_client_ocurl_lwt.mli @@ -24,7 +24,7 @@ val setup : ?config:Config.t -> ?enable:bool -> unit -> unit val remove_backend : unit -> unit Lwt.t (** Shutdown current backend - @since NEXT_RELEASE *) + @since 0.90 *) val with_setup : ?after_shutdown:(Opentelemetry.Exporter.t -> unit) -> diff --git a/src/client-ocurl/opentelemetry_client_ocurl.mli b/src/client-ocurl/opentelemetry_client_ocurl.mli index be4797fd..bc42c47c 100644 --- a/src/client-ocurl/opentelemetry_client_ocurl.mli +++ b/src/client-ocurl/opentelemetry_client_ocurl.mli @@ -10,7 +10,7 @@ val consumer : (** Consumer that pulls from a queue *) val create_exporter : ?config:Config.t -> unit -> Opentelemetry.Exporter.t -(** @since NEXT_RELEASE *) +(** @since 0.90 *) val create_backend : ?config:Config.t -> unit -> Opentelemetry.Exporter.t [@@deprecated "use create_exporter"] @@ -26,7 +26,7 @@ val setup : ?config:Config.t -> ?enable:bool -> unit -> unit after a little while. *) val remove_exporter : unit -> unit -(** @since NEXT_RELEASE *) +(** @since 0.90 *) val remove_backend : unit -> unit [@@deprecated "use remove_exporter"] diff --git a/src/client/emitter_limit_interval.mli b/src/client/emitter_limit_interval.mli index 43ec32d0..2777ed4c 100644 --- a/src/client/emitter_limit_interval.mli +++ b/src/client/emitter_limit_interval.mli @@ -10,7 +10,7 @@ than [add_batching (limit_interval ~min_interval e)], because in the later case we might be dismissing a whole large batch at ine - @since NEXT_RELEASE *) + @since 0.90 *) open Common_.OTEL diff --git a/src/client/exporter_config.mli b/src/client/exporter_config.mli index d042f210..2567e72d 100644 --- a/src/client/exporter_config.mli +++ b/src/client/exporter_config.mli @@ -75,12 +75,12 @@ type t = { self_metrics: bool; (** If true, the OTEL library will regularly emit metrics about itself. Default [false]. - @since NEXT_RELEASE *) + @since 0.90 *) http_concurrency_level: int option; (** How many HTTP requests can be done simultaneously (at most)? This can be used to represent the size of a pool of workers where each worker gets a batch to send, send it, and repeats. - @since NEXT_RELEASE *) + @since 0.90 *) retry_max_attempts: int; (** Maximum number of retry attempts for failed exports. 0 means no retry, 1 means one retry after initial failure. Default 3. *) diff --git a/src/core/span.mli b/src/core/span.mli index 14a617de..15f34e77 100644 --- a/src/core/span.mli +++ b/src/core/span.mli @@ -128,4 +128,4 @@ val default_kind : Span_kind.t ref val k_ambient : t Context.key (** Context key to carry around a {!Span.t} in ambient context. - @since NEXT_RELEASE *) + @since 0.90 *) diff --git a/src/lib/emitter_batch.mli b/src/lib/emitter_batch.mli index 817f06c0..4a43fcaa 100644 --- a/src/lib/emitter_batch.mli +++ b/src/lib/emitter_batch.mli @@ -5,7 +5,7 @@ generally very fast (amortized), in most cases; the slow path is only when the batch needs to be emitted. - @since NEXT_RELEASE *) + @since 0.90 *) open Opentelemetry_emitter diff --git a/src/lib/globals.ml b/src/lib/globals.ml index ab190703..0c773233 100644 --- a/src/lib/globals.ml +++ b/src/lib/globals.ml @@ -20,7 +20,7 @@ let service_instance_id = ref None @since 0.12 *) let service_version = ref None -(** @since NEXT_RELEASE *) +(** @since 0.90 *) let sdk_version : string = Version.version let instrumentation_library = diff --git a/src/lib/opentelemetry.ml b/src/lib/opentelemetry.ml index 70db53f4..60007126 100644 --- a/src/lib/opentelemetry.ml +++ b/src/lib/opentelemetry.ml @@ -5,7 +5,7 @@ module Core = Opentelemetry_core module Interval_limiter = Interval_limiter (** Utility to limit the frequency of some event - @since NEXT_RELEASE *) + @since 0.90 *) (** {2 Wire format} *) @@ -27,15 +27,15 @@ module Exporter = struct include Exporter (** Get a tracer from this exporter. - @since NEXT_RELEASE *) + @since 0.90 *) let get_tracer (self : t) : Tracer.t = Tracer.of_exporter self (** Get a meter from this exporter. - @since NEXT_RELEASE *) + @since 0.90 *) let get_meter (self : t) : Meter.t = Meter.of_exporter self (** Get a logger from this exporter. - @since NEXT_RELEASE *) + @since 0.90 *) let get_logger (self : t) : Logger.t = Logger.of_exporter self end @@ -43,17 +43,17 @@ module Sdk = struct include Sdk (** Get a tracer forwarding to the current main exporter. - @since NEXT_RELEASE *) + @since 0.90 *) let get_tracer ?name ?version ?attrs ?__MODULE__ () = Trace_provider.get_tracer ?name ?version ?attrs ?__MODULE__ () (** Get a meter forwarding to the current main exporter. - @since NEXT_RELEASE *) + @since 0.90 *) let get_meter ?name ?version ?attrs ?__MODULE__ () = Meter_provider.get_meter ?name ?version ?attrs ?__MODULE__ () (** Get a logger forwarding to the current main exporter. - @since NEXT_RELEASE *) + @since 0.90 *) let get_logger ?name ?version ?attrs ?__MODULE__ () = Log_provider.get_logger ?name ?version ?attrs ?__MODULE__ () @@ -165,7 +165,7 @@ module Trace_context = Trace_context module Gc_metrics = Gc_metrics module Aswitch = Aswitch -(** @since NEXT_RELEASE *) +(** @since 0.90 *) module Alist = Alist (** Atomic list, for internal usage diff --git a/src/lib/self_debug.mli b/src/lib/self_debug.mli index b95c2bec..55fea086 100644 --- a/src/lib/self_debug.mli +++ b/src/lib/self_debug.mli @@ -8,7 +8,7 @@ Self_debug.log Info (fun () -> Printf.sprintf "batch flushed %d items" n) ]}. - @since NEXT_RELEASE *) + @since 0.90 *) type level = | Debug diff --git a/src/trace/opentelemetry_trace.mli b/src/trace/opentelemetry_trace.mli index 3037f6d2..c0cf1919 100644 --- a/src/trace/opentelemetry_trace.mli +++ b/src/trace/opentelemetry_trace.mli @@ -72,13 +72,13 @@ val link_spans : Otrace.span -> Otrace.span -> unit val link_span_to_otel_ctx : Otrace.span -> OTEL.Span_ctx.t -> unit (** [link_spans sp1 sp_ctx2] modifies [sp1] by adding a span link to [sp_ctx2]. It must be the case that [sp1] is a currently active span. - @since NEXT_RELEASE *) + @since 0.90 *) val set_span_kind : Otrace.span -> OTEL.Span.kind -> unit (** [set_span_kind sp k] sets the span's kind. *) val set_span_status : Otrace.span -> OTEL.Span_status.t -> unit -(** @since NEXT_RELEASE *) +(** @since 0.90 *) val record_exception : Otrace.span -> exn -> Printexc.raw_backtrace -> unit (** Record exception in the current span. *)