-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deaa0b8
commit 297a13f
Showing
17 changed files
with
138 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "ddappsec.h" | ||
|
||
#include "configuration.h" | ||
#include "ddtrace.h" | ||
#include "tracer_tag_propagation/tracer_tag_propagation.h" | ||
|
||
ZEND_EXTERN_MODULE_GLOBALS(ddtrace); | ||
|
||
static zend_string *_dd_tag_p_appsec_zstr; | ||
static zend_string *_1_zstr; | ||
|
||
void ddtrace_appsec_minit() { | ||
_1_zstr = zend_string_init_interned(ZEND_STRL("1"), 1 /* permanent */); | ||
_dd_tag_p_appsec_zstr = zend_string_init_interned(ZEND_STRL(DD_TAG_P_APPSEC), 1 /* permanent */); | ||
} | ||
|
||
DDTRACE_PUBLIC void ddtrace_emit_asm_event() { | ||
DDTRACE_G(asm_event_emitted) = true; | ||
|
||
zval _1_zval; | ||
ZVAL_STR(&_1_zval, _1_zstr); | ||
ddtrace_add_propagated_tag(_dd_tag_p_appsec_zstr, &_1_zval); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef DD_APPSEC_H | ||
#define DD_APPSEC_H | ||
|
||
#include "ddtrace_export.h" | ||
|
||
#define DD_TAG_P_APPSEC "_dd.p.appsec" | ||
|
||
void ddtrace_appsec_minit(); | ||
DDTRACE_PUBLIC void ddtrace_emit_asm_event(); | ||
|
||
#endif // DD_APPSEC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.