-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathIncubatingSemanticEvents.java.j2
More file actions
30 lines (27 loc) · 1.08 KB
/
Copy pathIncubatingSemanticEvents.java.j2
File metadata and controls
30 lines (27 loc) · 1.08 KB
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
{%- set my_class_name = ctx.root_namespace | pascal_case ~ "IncubatingEvents" -%}
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/incubating_java/IncubatingSemanticEvents.java.j2
@SuppressWarnings("unused")
public final class {{ my_class_name }} {
{%- for event in ctx.events -%}
{%- if event is deprecated -%}
{%- if event.deprecated.note == "Uncategorized." -%}
{%- set deprecated_javadoc = "@deprecated" -%}
{%- else -%}
{%- set deprecated_javadoc = "@deprecated " ~ event.deprecated.note -%}
{%- endif -%}
{%- else -%}
{%- set deprecated_javadoc = "" -%}
{%- endif -%}
{{ [event.brief, concat_if("\n\nNotes:\n\n", event.note), deprecated_javadoc] | comment }}
{%- if event is deprecated -%}
@Deprecated
{%- endif %}
public static final String {{ event.name | screaming_snake_case }} = "{{ event.name }}";
{%- endfor %}
private {{ my_class_name }}() {}
}