You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Always close the exporter to ensure proper release of WebDriver resources
137
+
exporter.close();
132
138
```
133
139
140
+
Allways call `close()` on the exporter to ensure proper release of WebDriver resources. Due to the nature of WebDriver implementation, close has to be called as resources cannot be automatically dropped or released.
141
+
134
142
## Advanced Configuration
135
143
136
144
### Custom WebDriver Configuration
@@ -150,6 +158,10 @@ let mut exporter = StaticExporterBuilder::default()
150
158
])
151
159
.build()
152
160
.expect("Failed to create StaticExporter");
161
+
162
+
// Always close the exporter to ensure proper release of WebDriver resources
163
+
exporter.close();
164
+
153
165
```
154
166
155
167
### Parallel Usage
@@ -172,6 +184,9 @@ let mut exporter = StaticExporterBuilder::default()
172
184
.webdriver_port(get_unique_port())
173
185
.build()
174
186
.expect("Failed to build StaticExporter");
187
+
188
+
// Always close the exporter to ensure proper release of WebDriver resources
189
+
exporter.close();
175
190
```
176
191
177
192
## Logging Support
@@ -190,6 +205,9 @@ env_logger::init();
190
205
letmutexporter=StaticExporterBuilder::default()
191
206
.build()
192
207
.expect("Failed to create StaticExporter");
208
+
209
+
// Always close the exporter to ensure proper release of WebDriver resources
0 commit comments