Skip to content

Commit cfe2c59

Browse files
committed
Removed Java Telemetry Initializer section
1 parent fa49dbd commit cfe2c59

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

articles/azure-monitor/app/api-filtering-sampling.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -304,26 +304,6 @@ For apps written using [ASP.NET Core](asp-net-core.md#adding-telemetryinitialize
304304
services.AddSingleton<ITelemetryInitializer, MyTelemetryInitializer>();
305305
}
306306
```
307-
308-
### Java telemetry initializers
309-
310-
[Java SDK documentation](https://docs.microsoft.com/java/api/com.microsoft.applicationinsights.extensibility.telemetryinitializer?view=azure-java-stable)
311-
312-
```Java
313-
public interface TelemetryInitializer
314-
{ /** Initializes properties of the specified object. * @param telemetry The {@link com.microsoft.applicationinsights.telemetry.Telemetry} to initialize. */
315-
316-
void initialize(Telemetry telemetry); }
317-
```
318-
319-
Then register the custom initializer in your applicationinsights.xml file.
320-
321-
```xml
322-
<Add type="mypackage.MyConfigurableContextInitializer">
323-
<Param name="some_config_property" value="some_value" />
324-
</Add>
325-
```
326-
327307
### JavaScript telemetry initializers
328308
*JavaScript*
329309

0 commit comments

Comments
 (0)