-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathweaver.yaml
77 lines (77 loc) · 2.38 KB
/
weaver.yaml
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
67
68
69
70
71
72
73
74
75
76
77
params:
excluded_namespaces: ["ios", "aspnetcore", "signalr"]
# excluding "exception.escaped" from stable attributes
# because we are anticipating it being deprecated soon
excluded_attributes: ["messaging.client_id", "exception.escaped"]
comment_formats:
javadoc:
format: html
header: "/**"
prefix: " * "
footer: " */"
old_style_paragraph: true
omit_closing_li: true
inline_code_snippet: "{@code {{code}}}"
block_code_snippet: "<pre>{@code {{code}}}</pre>"
trim: true
remove_trailing_dots: false
default_comment_format: javadoc
templates:
- pattern: SemanticAttributes.java.j2
filter: >
semconv_grouped_attributes({
"exclude_root_namespace": $excluded_namespaces,
"exclude_stability": ["experimental", "deprecated"]
}) | map({
root_namespace: .root_namespace,
attributes: .attributes,
excluded_attributes: $excluded_attributes
})
application_mode: each
file_name: "{{ctx.root_namespace | pascal_case}}Attributes.java"
text_maps:
java_enum_type:
int: long
double: double
boolean: boolean
string: String
string[]: String[]
int[]: long[]
double[]: double[]
boolean[]: boolean[]
java_key_type:
int: AttributeKey<Long>
double: AttributeKey<Double>
boolean: AttributeKey<Boolean>
string: AttributeKey<String>
string[]: AttributeKey<List<String>>
int[]: AttributeKey<List<Long>>
double[]: AttributeKey<List<Double>>
boolean[]: AttributeKey<List<Boolean>>
java_template_key_type:
int: AttributeKeyTemplate<Long>
double: AttributeKeyTemplate<Double>
boolean: AttributeKeyTemplate<Boolean>
string: AttributeKeyTemplate<String>
string[]: AttributeKeyTemplate<List<String>>
int[]: AttributeKeyTemplate<List<Long>>
double[]: AttributeKeyTemplate<List<Double>>
boolean[]: AttributeKeyTemplate<List<Boolean>>
java_key_factory:
int: longKey
double: doubleKey
boolean: booleanKey
string: stringKey
string[]: stringArrayKey
int[]: longArrayKey
double[]: doubleArrayKey
boolean[]: booleanArrayKey
java_template_key_factory:
int: longKeyTemplate
double: doubleKeyTemplate
boolean: booleanKeyTemplate
string: stringKeyTemplate
string[]: stringArrayKeyTemplate
int[]: longArrayKeyTemplate
double[]: doubleArrayKeyTemplate
boolean[]: booleanArrayKeyTemplate