-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathanalyze_otel_directives.gen.go
43 lines (39 loc) · 1.34 KB
/
analyze_otel_directives.gen.go
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
/**
* Copyright (c) F5, Inc.
*
* This source code is licensed under the Apache License, Version 2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
// Code generated by generator; DO NOT EDIT.
// All the definitions are extracted from the source code
// Each bit mask describes these behaviors:
// - how many arguments the directive can take
// - whether or not it is a block directive
// - whether this is a flag (takes one argument that's either "on" or "off")
// - which contexts it's allowed to be in
package crossplane
var otelDirectives = map[string][]uint{
"otel_exporter": {
ngxHTTPMainConf | ngxConfBlock | ngxConfNoArgs,
},
"otel_service_name": {
ngxHTTPMainConf | ngxConfTake1,
},
"otel_span_attr": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
},
"otel_span_name": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
},
"otel_trace": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
},
"otel_trace_context": {
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
},
}
// MatchOtelLatest is a MatchFunc for latest version of otel.
func MatchOtelLatest(directive string) ([]uint, bool) {
m, ok := otelDirectives[directive]
return m, ok
}