Skip to content

Commit c6644b4

Browse files
authored
Fix OTel exporter issues with GraalVM native execution (Azure#36532)
1 parent 396d42b commit c6644b4

File tree

2 files changed

+94
-48
lines changed
  • sdk
    • monitor/azure-monitor-opentelemetry-exporter/src/main/resources/META-INF/native-image/com.azure/azure-monitor-opentelemetry-exporter
    • spring/spring-cloud-azure-starter-monitor/src/main/resources/META-INF/native-image

2 files changed

+94
-48
lines changed

sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/resources/META-INF/native-image/com.azure/azure-monitor-opentelemetry-exporter/reflect-config.json

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,26 @@
22
{
33
"name": "com.azure.monitor.opentelemetry.exporter.AzureMonitorLogRecordExporter",
44
"allDeclaredMethods": true,
5-
"allDeclaredFields": true
5+
"allDeclaredFields": true,
6+
"allDeclaredConstructors": true
67
},
78
{
89
"name": "com.azure.monitor.opentelemetry.exporter.AzureMonitorMetricExporter",
910
"allDeclaredMethods": true,
10-
"allDeclaredFields": true
11+
"allDeclaredFields": true,
12+
"allDeclaredConstructors": true
1113
},
1214
{
1315
"name": "com.azure.monitor.opentelemetry.exporter.AzureMonitorTraceExporter",
1416
"allDeclaredMethods": true,
15-
"allDeclaredFields": true
17+
"allDeclaredFields": true,
18+
"allDeclaredConstructors": true
1619
},
1720
{
1821
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.AvailabilityData",
1922
"allDeclaredMethods": true,
20-
"allDeclaredFields": true
23+
"allDeclaredFields": true,
24+
"allDeclaredConstructors": true
2125
},
2226
{
2327
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.ContextTagKeys",
@@ -26,96 +30,115 @@
2630
{
2731
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.DataPointType",
2832
"allDeclaredMethods": true,
29-
"allDeclaredFields": true
33+
"allDeclaredFields": true,
34+
"allDeclaredConstructors": true
3035
},
3136
{
3237
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.ExportResult",
3338
"allDeclaredMethods": true,
34-
"allDeclaredFields": true
39+
"allDeclaredFields": true,
40+
"allDeclaredConstructors": true
3541
},
3642
{
3743
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.ExportResultException",
3844
"allDeclaredMethods": true,
39-
"allDeclaredFields": true
45+
"allDeclaredFields": true,
46+
"allDeclaredConstructors": true
4047
},
4148
{
4249
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MessageData",
4350
"allDeclaredMethods": true,
44-
"allDeclaredFields": true
51+
"allDeclaredFields": true,
52+
"allDeclaredConstructors": true
4553
},
4654
{
4755
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MetricDataPoint",
4856
"allDeclaredMethods": true,
49-
"allDeclaredFields": true
57+
"allDeclaredFields": true,
58+
"allDeclaredConstructors": true
5059
},
5160
{
5261
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MetricsData",
5362
"allDeclaredMethods": true,
54-
"allDeclaredFields": true
63+
"allDeclaredFields": true,
64+
"allDeclaredConstructors": true
5565
},
5666
{
5767
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MonitorBase",
5868
"allDeclaredMethods": true,
59-
"allDeclaredFields": true
69+
"allDeclaredFields": true,
70+
"allDeclaredConstructors": true
6071
},
6172
{
6273
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MonitorDomain",
74+
"allDeclaredMethods": true,
6375
"allDeclaredFields": true,
64-
"allDeclaredMethods": true
76+
"allDeclaredConstructors": true
6577
},
6678
{
6779
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.PageViewData",
80+
"allDeclaredMethods": true,
6881
"allDeclaredFields": true,
69-
"allDeclaredMethods": true
82+
"allDeclaredConstructors": true
7083
},
7184
{
7285
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.PageViewPerfData",
86+
"allDeclaredMethods": true,
7387
"allDeclaredFields": true,
74-
"allDeclaredMethods": true
88+
"allDeclaredConstructors": true
7589
},
7690
{
7791
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.RemoteDependencyData",
7892
"allDeclaredMethods": true,
79-
"allDeclaredFields": true
93+
"allDeclaredFields": true,
94+
"allDeclaredConstructors": true
8095
},
8196
{
8297
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.RequestData",
8398
"allDeclaredMethods": true,
84-
"allDeclaredFields": true
99+
"allDeclaredFields": true,
100+
"allDeclaredConstructors": true
85101
},
86102
{
87103
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.SeverityLevel",
88-
"allDeclaredConstructors": true,
89-
"allDeclaredFields": true
104+
"allDeclaredMethods": true,
105+
"allDeclaredFields": true,
106+
"allDeclaredConstructors": true
90107
},
91108
{
92109
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.StackFrame",
93110
"allDeclaredMethods": true,
94-
"allDeclaredFields": true
111+
"allDeclaredFields": true,
112+
"allDeclaredConstructors": true
95113
},
96114
{
97115
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryErrorDetails",
98116
"allDeclaredMethods": true,
99-
"allDeclaredFields": true
117+
"allDeclaredFields": true,
118+
"allDeclaredConstructors": true
100119
},
101120
{
102121
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryEventData",
103122
"allDeclaredMethods": true,
104-
"allDeclaredFields": true
123+
"allDeclaredFields": true,
124+
"allDeclaredConstructors": true
105125
},
106126
{
107127
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryExceptionData",
108128
"allDeclaredMethods": true,
109-
"allDeclaredFields": true
129+
"allDeclaredFields": true,
130+
"allDeclaredConstructors": true
110131
},
111132
{
112133
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryExceptionDetails",
113134
"allDeclaredMethods": true,
114-
"allDeclaredFields": true
135+
"allDeclaredFields": true,
136+
"allDeclaredConstructors": true
115137
},
116138
{
117139
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryItem",
118140
"allDeclaredMethods": true,
119-
"allDeclaredFields": true
141+
"allDeclaredFields": true,
142+
"allDeclaredConstructors": true
120143
}
121144
]

sdk/spring/spring-cloud-azure-starter-monitor/src/main/resources/META-INF/native-image/reflect-config.json

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,26 @@
3131
{
3232
"name": "com.azure.monitor.opentelemetry.exporter.AzureMonitorLogRecordExporter",
3333
"allDeclaredMethods": true,
34-
"allDeclaredFields": true
34+
"allDeclaredFields": true,
35+
"allDeclaredConstructors": true
3536
},
3637
{
3738
"name": "com.azure.monitor.opentelemetry.exporter.AzureMonitorMetricExporter",
3839
"allDeclaredMethods": true,
39-
"allDeclaredFields": true
40+
"allDeclaredFields": true,
41+
"allDeclaredConstructors": true
4042
},
4143
{
4244
"name": "com.azure.monitor.opentelemetry.exporter.AzureMonitorTraceExporter",
4345
"allDeclaredMethods": true,
44-
"allDeclaredFields": true
46+
"allDeclaredFields": true,
47+
"allDeclaredConstructors": true
4548
},
4649
{
4750
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.AvailabilityData",
4851
"allDeclaredMethods": true,
49-
"allDeclaredFields": true
52+
"allDeclaredFields": true,
53+
"allDeclaredConstructors": true
5054
},
5155
{
5256
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.ContextTagKeys",
@@ -55,96 +59,115 @@
5559
{
5660
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.DataPointType",
5761
"allDeclaredMethods": true,
58-
"allDeclaredFields": true
62+
"allDeclaredFields": true,
63+
"allDeclaredConstructors": true
5964
},
6065
{
6166
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.ExportResult",
6267
"allDeclaredMethods": true,
63-
"allDeclaredFields": true
68+
"allDeclaredFields": true,
69+
"allDeclaredConstructors": true
6470
},
6571
{
6672
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.ExportResultException",
6773
"allDeclaredMethods": true,
68-
"allDeclaredFields": true
74+
"allDeclaredFields": true,
75+
"allDeclaredConstructors": true
6976
},
7077
{
7178
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MessageData",
7279
"allDeclaredMethods": true,
73-
"allDeclaredFields": true
80+
"allDeclaredFields": true,
81+
"allDeclaredConstructors": true
7482
},
7583
{
7684
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MetricDataPoint",
7785
"allDeclaredMethods": true,
78-
"allDeclaredFields": true
86+
"allDeclaredFields": true,
87+
"allDeclaredConstructors": true
7988
},
8089
{
8190
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MetricsData",
8291
"allDeclaredMethods": true,
83-
"allDeclaredFields": true
92+
"allDeclaredFields": true,
93+
"allDeclaredConstructors": true
8494
},
8595
{
8696
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MonitorBase",
8797
"allDeclaredMethods": true,
88-
"allDeclaredFields": true
98+
"allDeclaredFields": true,
99+
"allDeclaredConstructors": true
89100
},
90101
{
91102
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.MonitorDomain",
103+
"allDeclaredMethods": true,
92104
"allDeclaredFields": true,
93-
"allDeclaredMethods": true
105+
"allDeclaredConstructors": true
94106
},
95107
{
96108
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.PageViewData",
109+
"allDeclaredMethods": true,
97110
"allDeclaredFields": true,
98-
"allDeclaredMethods": true
111+
"allDeclaredConstructors": true
99112
},
100113
{
101114
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.PageViewPerfData",
115+
"allDeclaredMethods": true,
102116
"allDeclaredFields": true,
103-
"allDeclaredMethods": true
117+
"allDeclaredConstructors": true
104118
},
105119
{
106120
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.RemoteDependencyData",
107121
"allDeclaredMethods": true,
108-
"allDeclaredFields": true
122+
"allDeclaredFields": true,
123+
"allDeclaredConstructors": true
109124
},
110125
{
111126
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.RequestData",
112127
"allDeclaredMethods": true,
113-
"allDeclaredFields": true
128+
"allDeclaredFields": true,
129+
"allDeclaredConstructors": true
114130
},
115131
{
116132
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.SeverityLevel",
117-
"allDeclaredConstructors": true,
118-
"allDeclaredFields": true
133+
"allDeclaredMethods": true,
134+
"allDeclaredFields": true,
135+
"allDeclaredConstructors": true
119136
},
120137
{
121138
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.StackFrame",
122139
"allDeclaredMethods": true,
123-
"allDeclaredFields": true
140+
"allDeclaredFields": true,
141+
"allDeclaredConstructors": true
124142
},
125143
{
126144
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryErrorDetails",
127145
"allDeclaredMethods": true,
128-
"allDeclaredFields": true
146+
"allDeclaredFields": true,
147+
"allDeclaredConstructors": true
129148
},
130149
{
131150
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryEventData",
132151
"allDeclaredMethods": true,
133-
"allDeclaredFields": true
152+
"allDeclaredFields": true,
153+
"allDeclaredConstructors": true
134154
},
135155
{
136156
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryExceptionData",
137157
"allDeclaredMethods": true,
138-
"allDeclaredFields": true
158+
"allDeclaredFields": true,
159+
"allDeclaredConstructors": true
139160
},
140161
{
141162
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryExceptionDetails",
142163
"allDeclaredMethods": true,
143-
"allDeclaredFields": true
164+
"allDeclaredFields": true,
165+
"allDeclaredConstructors": true
144166
},
145167
{
146168
"name": "com.azure.monitor.opentelemetry.exporter.implementation.models.TelemetryItem",
147169
"allDeclaredMethods": true,
148-
"allDeclaredFields": true
170+
"allDeclaredFields": true,
171+
"allDeclaredConstructors": true
149172
}
150173
]

0 commit comments

Comments
 (0)