-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvalkey_glide_otel.h
More file actions
31 lines (26 loc) · 1.37 KB
/
valkey_glide_otel.h
File metadata and controls
31 lines (26 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
+----------------------------------------------------------------------+
| Copyright (c) 2023-2025 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#ifndef VALKEY_GLIDE_OTEL_H
#define VALKEY_GLIDE_OTEL_H
#include "include/glide_bindings.h"
#include "php.h"
/* Global OTEL configuration */
extern struct OpenTelemetryConfig* g_otel_config;
/* Function declarations */
int valkey_glide_otel_init(zval* config_obj);
void valkey_glide_otel_set_sample_percentage(uint32_t percentage);
int valkey_glide_otel_get_sample_percentage(uint32_t* percentage);
uint64_t valkey_glide_create_span(enum RequestType request_type);
void valkey_glide_drop_span(uint64_t span_ptr);
#endif /* VALKEY_GLIDE_OTEL_H */