forked from open-telemetry/opentelemetry-php-instrumentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_opentelemetry.h
31 lines (23 loc) · 943 Bytes
/
php_opentelemetry.h
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
#ifndef PHP_OPENTELEMETRY_H
#define PHP_OPENTELEMETRY_H
extern zend_module_entry opentelemetry_module_entry;
#define phpext_opentelemetry_ptr &opentelemetry_module_entry
ZEND_BEGIN_MODULE_GLOBALS(opentelemetry)
HashTable *observer_class_lookup;
HashTable *observer_function_lookup;
HashTable *observer_aggregates;
int validate_hook_functions;
char *conflicts;
int disabled; // module disabled? (eg due to conflicting extension loaded)
int allow_stack_extension;
int attr_hooks_enabled; // attribute hooking enabled?
char *pre_handler_function_fqn;
char *post_handler_function_fqn;
ZEND_END_MODULE_GLOBALS(opentelemetry)
ZEND_EXTERN_MODULE_GLOBALS(opentelemetry)
#define OTEL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(opentelemetry, v)
#define PHP_OPENTELEMETRY_VERSION "1.1.0beta3"
#if defined(ZTS) && defined(COMPILE_DL_OPENTELEMETRY)
ZEND_TSRMLS_CACHE_EXTERN()
#endif
#endif /* PHP_OPENTELEMETRY_H */