Skip to content

Commit 243e432

Browse files
authored
Failsafe metadata (#14694)
1 parent 75a3429 commit 243e432

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

docs/instrumentation-list.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,6 +3046,38 @@ libraries:
30463046
description: Whether to instrument all classes that implement the Executor interface.
30473047
type: boolean
30483048
default: false
3049+
failsafe:
3050+
- name: failsafe-3.0
3051+
description: This standalone instrumentation enables metrics for Failsafe circuit
3052+
breakers.
3053+
library_link: https://failsafe.dev
3054+
source_path: instrumentation/failsafe-3.0
3055+
scope:
3056+
name: io.opentelemetry.failsafe-3.0
3057+
target_versions:
3058+
library:
3059+
- dev.failsafe:failsafe:3.0.1
3060+
telemetry:
3061+
- when: default
3062+
metrics:
3063+
- name: failsafe.circuit_breaker.execution.count
3064+
description: Count of circuit breaker executions.
3065+
type: LONG_SUM
3066+
unit: execution
3067+
attributes:
3068+
- name: failsafe.circuit_breaker.name
3069+
type: STRING
3070+
- name: failsafe.circuit_breaker.outcome
3071+
type: STRING
3072+
- name: failsafe.circuit_breaker.state_changes.count
3073+
description: Count of circuit breaker state changes.
3074+
type: LONG_SUM
3075+
unit: execution
3076+
attributes:
3077+
- name: failsafe.circuit_breaker.name
3078+
type: STRING
3079+
- name: failsafe.circuit_breaker.state
3080+
type: STRING
30493081
finagle:
30503082
- name: finagle-http-23.11
30513083
description: |

instrumentation-docs/instrumentations.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ readonly INSTRUMENTATIONS=(
158158
"influxdb-2.4:javaagent:test"
159159
"influxdb-2.4:javaagent:testStableSemconv"
160160
"java-http-server:javaagent:test"
161+
"failsafe-3.0:library:test"
161162
)
162163

163164
# Some instrumentation test suites don't run ARM, so we use colima to run them in an x86_64

instrumentation/failsafe-3.0/library/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ plugins {
55
dependencies {
66
library("dev.failsafe:failsafe:3.0.1")
77
}
8+
9+
tasks.test {
10+
systemProperty("collectMetadata", findProperty("collectMetadata")?.toString() ?: "false")
11+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
description: This standalone instrumentation enables metrics for Failsafe circuit breakers.
2+
library_link: https://failsafe.dev

0 commit comments

Comments
 (0)