-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModuleConfig.cfc
66 lines (56 loc) · 1.63 KB
/
ModuleConfig.cfc
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
* www.ortussolutions.com
* ---
*/
component {
// Module Properties
this.title = "Coldbox Open Telementry Module";
this.author = "Ortus Solutions";
this.webURL = "https://www.ortussolutions.com";
this.description = "A coldbox module which provides Open Telemetry information to the framework";
this.version = "@build.version@[email protected]@";
// Model Namespace
this.modelNamespace = "cbotel";
// CF Mapping
this.cfmapping = "cbotel";
// Dependencies
this.dependencies = [];
/**
* Configure Module
*/
function configure(){
settings = {
// Whether to auto-add a traceparent header to the event headers, if one is not supplied
"autoAddTraceParent" : true,
// Whether to auto-add a trace state header to the event headers, if one is not supplied
"autoAddTraceState" : true,
// Whether to append the trace headers to hyper requests
"hyperTraceEnabled" : true,
// Whether to append the trace informat to logstash entries
"logstashTraceEnabled" : true,
// Whether to enable SQL comments which will supply the traceparent header as an SQL comment to QB requests
"SQLCommentsEnabled" : true
};
interceptors = [
// API Security Interceptor
{ class : "cbotel.interceptors.Tracing" }
];
interceptorSettings = {
customInterceptionPoints : [
"onTraceStateReceived",
"onTraceStateFinalized"
]
};
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
}