Skip to content

Commit

Permalink
prepare for 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 14, 2024
1 parent 8aaca71 commit 5a78805
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 11 deletions.
14 changes: 13 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
## next version
## 0.7

- add Span_link.of_span_ctx, Scope.to_span_ctx, dummy values
- feat: add Span_context, as required by OTEL API guidelines
- feat: record backtraces in error spans
- compat with trace 0.6
- ocurl: add ticker_interval_ms config
- ocurl: do some self-tracing optionally
- move protobuf code to opentelemetry.proto

- perf: rewrite parsing+printing for span ctx as w3c trace ctx
- perf: when we get multiple messages, check batches only once
- perf: use ocaml-protoc 3.0.1 for codegen, with faster pbrt

## 0.6

Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ format:
WATCH ?= @all
watch:
@dune build $(WATCH) -w $(OPTS)

VERSION=$(shell awk '/^version:/ {print $$2}' opentelemetry.opam)
update_next_tag:
@echo "update version to $(VERSION)..."
sed -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**/*.ml) $(wildcard src/**/*.mli)
sed -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/*.ml) $(wildcard src/**/*.ml) $(wildcard src/*.mli) $(wildcard src/**/*.mli)
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(source
(github imandra-ai/ocaml-opentelemetry))

(version 0.6)
(version 0.7)

(authors "the Imandra team and contributors")

Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-client-cohttp-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Collector client for opentelemetry, using cohttp + lwt"
maintainer: [
"Simon Cruanes <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-client-ocurl.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Collector client for opentelemetry, using http + ezcurl"
maintainer: [
"Simon Cruanes <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-cohttp-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Opentelemetry tracing for Cohttp HTTP servers"
maintainer: [
"Simon Cruanes <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Lwt-compatible instrumentation for https://opentelemetry.io"
maintainer: [
"Simon Cruanes <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.6"
version: "0.7"
synopsis: "Instrumentation for https://opentelemetry.io"
maintainer: [
"Simon Cruanes <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions src/client-ocurl/config.mli
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ type t = private {
This will be clamped between [2 ms] and some longer
interval (maximum [60s] currently).
Default 500.
@since NEXT_RELEASE *)
@since 0.7 *)
self_trace: bool;
(** If true, the OTEL library will also emit its own spans. Default [false].
@since NEXT_RELEASE *)
@since 0.7 *)
}
(** Configuration.
Expand Down
4 changes: 2 additions & 2 deletions src/core/opentelemetry.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Rand_bytes = Rand_bytes

module AList = AList
(** Atomic list, for internal usage
@since NEXT_RELEASE *)
@since 0.7 *)

(** {2 Wire format} *)

Expand Down Expand Up @@ -386,7 +386,7 @@ end
(** Span context. This bundles up a trace ID and parent ID.
https://opentelemetry.io/docs/specs/otel/trace/api/#spancontext
@since NEXT_RELEASE *)
@since 0.7 *)
module Span_ctx : sig
type t

Expand Down

0 comments on commit 5a78805

Please sign in to comment.