ocaml-opentelemetry/src/core
Shon Feder e66476015b
Move deprecation alerts to valid location
As discussed in https://github.com/ocaml/ocaml/issues/14078,
alerts (with deprecation alerts as a special case) are not currently
supported as item-attributes on let-bindings. This usage produces
`misplaced-attribute` warnings, such as

```
Warning 53 [misplaced-attribute]: the "deprecated" attribute cannot appear in this context
File "src/core/opentelemetry.ml", line 1229, characters 37-47:
1229 |   let add_event = Scope.add_event [@@deprecated "use Scope.add_event"]
                                            ^^^^^^^^^^
Warning 53 [misplaced-attribute]: the "deprecated" attribute cannot appear in this context

File "src/core/opentelemetry.ml", line 1231, characters 37-47:
1231 |   let add_attrs = Scope.add_attrs [@@deprecated "use Scope.add_attrs"]
                                            ^^^^^^^^^^
Warning 53 [misplaced-attribute]: the "deprecated" attribute cannot appear in this context
```

Fortunately, we can still add deprecation alerts to these value by
moving the alert to the pattern, as done here.
2025-06-07 10:56:56 -04:00
..
AList.ml fix: emit GC metrics even in the absence of custom metrics 2024-07-22 10:48:15 -04:00
AList.mli fix: emit GC metrics even in the absence of custom metrics 2024-07-22 10:48:15 -04:00
dune format 2024-09-20 09:22:13 -04:00
lock.ml move protobuf code to opentelemetry.proto 2023-11-07 15:34:12 -05:00
lock.mli format 2025-05-05 14:41:20 -04:00
opentelemetry.ml Move deprecation alerts to valid location 2025-06-07 10:56:56 -04:00
rand_bytes.ml perf: detail in core 2024-03-07 11:31:26 -05:00
rand_bytes.mli format 2025-05-05 14:41:20 -04:00