Skip to content

Commit aa11985

Browse files
authored
Clear the telemetry cache shm to indicate expiration (#1188)
Signed-off-by: Bob Weinand <[email protected]>
1 parent 34a19e8 commit aa11985

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datadog-sidecar/src/service/telemetry.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ impl TelemetryCachedClient {
228228
}
229229
}
230230

231+
impl Drop for TelemetryCachedClient {
232+
fn drop(&mut self) {
233+
self.shm_writer.write(&[]);
234+
}
235+
}
236+
231237
type ServiceString = String;
232238
type EnvString = String;
233239
type TelemetryCachedClientKey = (ServiceString, EnvString);

0 commit comments

Comments
 (0)