|
1 |
| -/* |
2 |
| - * Copyright The OpenTelemetry Authors |
3 |
| - * SPDX-License-Identifier: Apache-2.0 |
4 |
| - */ |
5 |
| - |
6 |
| -package io.opentelemetry.instrumentation.docs.internal; |
7 |
| - |
8 |
| -import io.opentelemetry.api.common.Attributes; |
9 |
| - |
10 |
| -/** |
11 |
| - * This class is internal and is hence not for public use. Its APIs are unstable and can change at |
12 |
| - * any time. |
13 |
| - */ |
14 |
| -public class EmittedScope { |
15 |
| - private Scope scope; |
16 |
| - |
17 |
| - public EmittedScope() {} |
18 |
| - |
19 |
| - public EmittedScope(Scope scope) { |
20 |
| - this.scope = scope; |
21 |
| - } |
22 |
| - |
23 |
| - public Scope getScope() { |
24 |
| - return scope; |
25 |
| - } |
26 |
| - |
27 |
| - public void setScope(Scope scope) { |
28 |
| - this.scope = scope; |
29 |
| - } |
30 |
| - |
31 |
| - /** |
32 |
| - * This class is internal and is hence not for public use. Its APIs are unstable and can change at |
33 |
| - * any time. |
34 |
| - */ |
35 |
| - public static class Scope { |
36 |
| - private String name; |
37 |
| - private String version; |
38 |
| - private String schemaUrl; |
39 |
| - private Attributes attributes; |
40 |
| - |
41 |
| - public Scope() {} |
42 |
| - |
43 |
| - public Scope(String name, String version, String schemaUrl, Attributes attributes) { |
44 |
| - this.name = name; |
45 |
| - this.version = version; |
46 |
| - this.schemaUrl = schemaUrl; |
47 |
| - this.attributes = attributes; |
48 |
| - } |
49 |
| - |
50 |
| - public String getName() { |
51 |
| - return name; |
52 |
| - } |
53 |
| - |
54 |
| - public void setName(String name) { |
55 |
| - this.name = name; |
56 |
| - } |
57 |
| - |
58 |
| - public String getVersion() { |
59 |
| - return version; |
60 |
| - } |
61 |
| - |
62 |
| - public void setVersion(String version) { |
63 |
| - this.version = version; |
64 |
| - } |
65 |
| - |
66 |
| - public String getSchemaUrl() { |
67 |
| - return schemaUrl; |
68 |
| - } |
69 |
| - |
70 |
| - public void setSchemaUrl(String schemaUrl) { |
71 |
| - this.schemaUrl = schemaUrl; |
72 |
| - } |
73 |
| - |
74 |
| - public Attributes getAttributes() { |
75 |
| - return attributes; |
76 |
| - } |
77 |
| - |
78 |
| - public void setAttributes(Attributes attributes) { |
79 |
| - this.attributes = attributes; |
80 |
| - } |
81 |
| - } |
82 |
| -} |
| 1 | +///* |
| 2 | +// * Copyright The OpenTelemetry Authors |
| 3 | +// * SPDX-License-Identifier: Apache-2.0 |
| 4 | +// */ |
| 5 | +// |
| 6 | +//package io.opentelemetry.instrumentation.docs.internal; |
| 7 | +// |
| 8 | +//import io.opentelemetry.api.common.Attributes; |
| 9 | +// |
| 10 | +///** |
| 11 | +// * This class is internal and is hence not for public use. Its APIs are unstable and can change at |
| 12 | +// * any time. |
| 13 | +// */ |
| 14 | +//public class EmittedScope { |
| 15 | +// private Scope scope; |
| 16 | +// |
| 17 | +// public EmittedScope() {} |
| 18 | +// |
| 19 | +// public EmittedScope(Scope scope) { |
| 20 | +// this.scope = scope; |
| 21 | +// } |
| 22 | +// |
| 23 | +// public Scope getScope() { |
| 24 | +// return scope; |
| 25 | +// } |
| 26 | +// |
| 27 | +// public void setScope(Scope scope) { |
| 28 | +// this.scope = scope; |
| 29 | +// } |
| 30 | +// |
| 31 | +// /** |
| 32 | +// * This class is internal and is hence not for public use. Its APIs are unstable and can change at |
| 33 | +// * any time. |
| 34 | +// */ |
| 35 | +// public static class Scope { |
| 36 | +// private String name; |
| 37 | +// private String version; |
| 38 | +// private String schemaUrl; |
| 39 | +// private Attributes attributes; |
| 40 | +// |
| 41 | +// public Scope() {} |
| 42 | +// |
| 43 | +// public Scope(String name, String version, String schemaUrl, Attributes attributes) { |
| 44 | +// this.name = name; |
| 45 | +// this.version = version; |
| 46 | +// this.schemaUrl = schemaUrl; |
| 47 | +// this.attributes = attributes; |
| 48 | +// } |
| 49 | +// |
| 50 | +// public String getName() { |
| 51 | +// return name; |
| 52 | +// } |
| 53 | +// |
| 54 | +// public void setName(String name) { |
| 55 | +// this.name = name; |
| 56 | +// } |
| 57 | +// |
| 58 | +// public String getVersion() { |
| 59 | +// return version; |
| 60 | +// } |
| 61 | +// |
| 62 | +// public void setVersion(String version) { |
| 63 | +// this.version = version; |
| 64 | +// } |
| 65 | +// |
| 66 | +// public String getSchemaUrl() { |
| 67 | +// if (schemaUrl == null || schemaUrl.equals("null")) { |
| 68 | +// return null; |
| 69 | +// } |
| 70 | +// return schemaUrl; |
| 71 | +// } |
| 72 | +// |
| 73 | +// public void setSchemaUrl(String schemaUrl) { |
| 74 | +// this.schemaUrl = schemaUrl; |
| 75 | +// } |
| 76 | +// |
| 77 | +// public Attributes getAttributes() { |
| 78 | +// return attributes; |
| 79 | +// } |
| 80 | +// |
| 81 | +// public void setAttributes(Attributes attributes) { |
| 82 | +// this.attributes = attributes; |
| 83 | +// } |
| 84 | +// } |
| 85 | +//} |
0 commit comments