| 1 |
#' `r lifecycle::badge("deprecated")`: Deprecated functions in promises |
| 2 |
#' |
| 3 |
#' These functions have been deprecated and will be removed in a future version. |
| 4 |
#' Please use the suggested alternatives instead. |
| 5 |
#' |
| 6 |
#' @name promises-deprecated |
| 7 |
#' @keywords internal |
| 8 |
NULL |
| 9 |
|
| 10 |
#' @describeIn promises-deprecated Use `with_otel_span()` instead |
| 11 |
#' @export |
| 12 |
with_ospan_async <- function( |
| 13 |
name, |
| 14 |
expr, |
| 15 |
..., |
| 16 |
tracer, |
| 17 |
attributes = NULL |
| 18 |
) { |
| 19 |
lifecycle::deprecate_warn( |
| 20 |
"1.5.0", |
| 21 |
"with_ospan_async()", |
| 22 |
"with_otel_span()" |
| 23 |
) |
| 24 |
with_otel_span( |
| 25 |
name = name, |
| 26 |
expr = expr, |
| 27 |
..., |
| 28 |
tracer = tracer, |
| 29 |
attributes = attributes |
| 30 |
) |
| 31 |
} |
| 32 |
|
| 33 |
#' @describeIn promises-deprecated Use `with_otel_promise_domain()` instead |
| 34 |
#' @export |
| 35 |
with_ospan_promise_domain <- function(expr) { |
| 36 |
lifecycle::deprecate_warn( |
| 37 |
"1.5.0", |
| 38 |
"with_ospan_promise_domain()", |
| 39 |
"with_otel_promise_domain()" |
| 40 |
) |
| 41 |
with_otel_promise_domain(expr) |
| 42 |
} |
| 43 |
|
| 44 |
#' @describeIn promises-deprecated Use `local_otel_promise_domain()` instead |
| 45 |
#' @export |
| 46 |
local_ospan_promise_domain <- function(envir = parent.frame()) { |
| 47 |
lifecycle::deprecate_warn( |
| 48 |
"1.5.0", |
| 49 |
"local_ospan_promise_domain()", |
| 50 |
"local_otel_promise_domain()" |
| 51 |
) |
| 52 |
local_otel_promise_domain(envir = envir) |
| 53 |
} |