Skip to content

Commit 923a44a

Browse files
Merge pull request #280242 from kainawroth/kainawroth-oteltabs
Fixing tab issue in OTel docs
2 parents 6d3c5c4 + 807a082 commit 923a44a

File tree

4 files changed

+277
-74
lines changed

4 files changed

+277
-74
lines changed

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Telemetry emitted by these Azure SDKs is automatically collected by default:
139139
[//]: # "console.log(str)"
140140

141141

142-
#### [Java Native](#tab/java-native)
142+
#### [Java native](#tab/java-native)
143143

144144
Requests for Spring Boot native applications
145145
* Spring Web
@@ -300,7 +300,7 @@ var metricsProvider = Sdk.CreateMeterProviderBuilder()
300300
### [Java](#tab/java)
301301
You can't extend the Java Distro with community instrumentation libraries. To request that we include another instrumentation library, open an issue on our GitHub page. You can find a link to our GitHub page in [Next Steps](#next-steps).
302302

303-
### [Java Native](#tab/java-native)
303+
### [Java native](#tab/java-native)
304304

305305
You can't use commmunity instrumentation libraries with GraalVM Java native applications.
306306

@@ -546,7 +546,7 @@ public class Program {
546546
}
547547
```
548548

549-
#### [Java Native](#tab/java-native)
549+
#### [Java native](#tab/java-native)
550550

551551
1. Inject `OpenTelemetry`
552552

@@ -743,7 +743,7 @@ public class Program {
743743
}
744744
}
745745
```
746-
#### [Java Native](#tab/java-native)
746+
#### [Java native](#tab/java-native)
747747

748748
1. Inject `OpenTelemetry`
749749

@@ -959,7 +959,7 @@ public class Program {
959959
}
960960
}
961961
```
962-
#### [Java Native](#tab/java-native)
962+
#### [Java native](#tab/java-native)
963963

964964
1. Inject `OpenTelemetry`
965965

@@ -1182,7 +1182,7 @@ You can use `opentelemetry-api` to update the status of a span and record except
11821182
span.recordException(e);
11831183
```
11841184

1185-
#### [Java Native](#tab/java-native)
1185+
#### [Java native](#tab/java-native)
11861186

11871187
Set status to `error` and record an exception in your code:
11881188

@@ -1412,7 +1412,7 @@ you can add your spans by using the OpenTelemetry API.
14121412
}
14131413
```
14141414

1415-
#### [Java Native](#tab/java-native)
1415+
#### [Java native](#tab/java-native)
14161416

14171417
1. Inject `OpenTelemetry`
14181418

@@ -1560,7 +1560,7 @@ You can use `opentelemetry-api` to create span events, which populate the `trace
15601560
Span.current().addEvent("eventName");
15611561
```
15621562
1563-
#### [Java Native](#tab/java-native)
1563+
#### [Java native](#tab/java-native)
15641564
15651565
You can use OpenTelemetry API to create span events, which populate the `traces` table in Application Insights. The string passed in to `addEvent()` is saved to the `message` field within the trace.
15661566
@@ -1697,9 +1697,9 @@ telemetryClient.TrackEvent("testEvent");
16971697
}
16981698

16991699

1700-
#### [Java Native](#tab/java-native)
1700+
#### [Java native](#tab/java-native)
17011701

1702-
It's not possible to send custom telemetry using the Application Insights Classic API in Java Native.
1702+
It's not possible to send custom telemetry using the Application Insights Classic API in Java native.
17031703

17041704
#### [Node.js](#tab/nodejs)
17051705

@@ -1928,7 +1928,7 @@ Adding one or more span attributes populates the `customDimensions` field in the
19281928
Span.current().setAttribute(attributeKey, "myvalue1");
19291929
```
19301930

1931-
##### [Java Native](#tab/java-native)
1931+
##### [Java native](#tab/java-native)
19321932

19331933
Add custom dimensions in your code:
19341934

@@ -2047,7 +2047,7 @@ activity.SetTag("http.client_ip", "<IP Address>");
20472047

20482048
Java automatically populates this field.
20492049

2050-
##### [Java Native](#tab/java-native)
2050+
##### [Java native](#tab/java-native)
20512051

20522052
This field is automatically populated.
20532053

@@ -2128,7 +2128,7 @@ Populate the `user ID` field in the `requests`, `dependencies`, or `exceptions`
21282128
Span.current().setAttribute("enduser.id", "myuser");
21292129
```
21302130

2131-
##### [Java Native](#tab/java-native)
2131+
##### [Java native](#tab/java-native)
21322132

21332133
Populate the `user ID` field in the `requests`, `dependencies`, or `exceptions` table.
21342134

@@ -2191,7 +2191,7 @@ Logback, Log4j, and java.util.logging are [autoinstrumented](#logs). Attaching c
21912191
* [Log4j 1.2 MDC](https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/MDC.html)
21922192

21932193

2194-
#### [Java Native](#tab/java-native)
2194+
#### [Java native](#tab/java-native)
21952195

21962196
For Spring Boot native applications, Logback is instrumented out of the box.
21972197

@@ -2330,9 +2330,9 @@ You might use the following ways to filter out telemetry before it leaves your a
23302330

23312331
See [sampling overrides](java-standalone-config.md#sampling-overrides) and [telemetry processors](java-standalone-telemetry-processors.md).
23322332

2333-
### [Java Native](#tab/java-native)
2333+
### [Java native](#tab/java-native)
23342334

2335-
It's not possible to filter telemetry in Java Native.
2335+
It's not possible to filter telemetry in Java native.
23362336

23372337
### [Node.js](#tab/nodejs)
23382338

@@ -2552,7 +2552,7 @@ You can use `opentelemetry-api` to get the trace ID or span ID.
25522552
String spanId = span.getSpanContext().getSpanId();
25532553
```
25542554

2555-
### [Java Native](#tab/java-native)
2555+
### [Java native](#tab/java-native)
25562556

25572557
Get the request trace ID and the span ID in your code:
25582558

@@ -2620,7 +2620,8 @@ span_id = trace.get_current_span().get_span_context().span_id
26202620
- To enable usage experiences, see [Enable web or browser user monitoring](javascript.md).
26212621
- See the [release notes](https://github.com/microsoft/ApplicationInsights-Java/releases) on GitHub.
26222622
2623-
### [Java Native](#tab/java-native)
2623+
### [Java native](#tab/java-native)
2624+
26242625
- For details on adding and modifying Azure Monitor OpenTelemetry, see [Add and modify Azure Monitor OpenTelemetry](opentelemetry-add-modify.md).
26252626
- To review the source code, see [Azure Monitor OpenTelemetry Distro in Spring Boot native image Java application](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/spring/spring-cloud-azure-starter-monitor)
26262627
and [Quarkus OpenTelemetry Exporter for Azure](https://github.com/quarkiverse/quarkus-opentelemetry-exporter/tree/main/quarkus-opentelemetry-exporter-azure).

articles/azure-monitor/app/opentelemetry-configuration.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Use one of the following two ways to configure the connection string:
113113

114114
To set the connection string, see [Connection string](java-standalone-config.md#connection-string).
115115

116-
### [Java Native](#tab/java-native)
116+
### [Java native](#tab/java-native)
117117

118118
Use one of the following two ways to configure the connection string:
119119

@@ -265,7 +265,7 @@ To set the cloud role name, see [cloud role name](java-standalone-config.md#clou
265265

266266
To set the cloud role instance, see [cloud role instance](java-standalone-config.md#cloud-role-instance).
267267

268-
### [Java Native](#tab/java-native)
268+
### [Java native](#tab/java-native)
269269

270270
To set the cloud role name:
271271
* Use the `spring.application.name` for Spring Boot native image applications
@@ -328,7 +328,7 @@ You might want to enable sampling to reduce your data ingestion volume, which re
328328
> [!NOTE]
329329
> Metrics and Logs are unaffected by sampling.
330330

331-
#### [ASP.NET Core](#tab/aspnetcore)
331+
### [ASP.NET Core](#tab/aspnetcore)
332332

333333
The sampler expects a sample rate of between 0 and 1 inclusive. A rate of 0.1 means approximately 10% of your traces are sent.
334334

@@ -351,7 +351,7 @@ var app = builder.Build();
351351
app.Run();
352352
```
353353

354-
#### [.NET](#tab/net)
354+
### [.NET](#tab/net)
355355

356356
The sampler expects a sample rate of between 0 and 1 inclusive. A rate of 0.1 means approximately 10% of your traces are sent.
357357

@@ -366,17 +366,17 @@ var tracerProvider = Sdk.CreateTracerProviderBuilder()
366366
});
367367
```
368368

369-
#### [Java](#tab/java)
369+
### [Java](#tab/java)
370370

371371
Starting from 3.4.0, rate-limited sampling is available and is now the default. For more information about sampling, see [Java sampling]( java-standalone-config.md#sampling).
372372

373-
#### [Java Native](#tab/java-native)
373+
### [Java native](#tab/java-native)
374374

375375
For Spring Boot native applications, the [sampling configurations of the OpenTelemetry Java SDK are applicable](https://opentelemetry.io/docs/languages/java/configuration/#sampler).
376376
377377
For Quarkus native applications, please look at the [Quarkus OpenTelemetry documentation](https://quarkus.io/guides/opentelemetry#sampler).
378378
379-
#### [Node.js](#tab/nodejs)
379+
### [Node.js](#tab/nodejs)
380380

381381
The sampler expects a sample rate of between 0 and 1 inclusive. A rate of 0.1 means approximately 10% of your traces are sent.
382382

@@ -393,7 +393,7 @@ const options: AzureMonitorOpenTelemetryOptions = {
393393
useAzureMonitor(options);
394394
```
395395

396-
#### [Python](#tab/python)
396+
### [Python](#tab/python)
397397

398398
The `configure_azure_monitor()` function automatically utilizes
399399
ApplicationInsightsSampler for compatibility with Application Insights SDKs and
@@ -416,7 +416,7 @@ export OTEL_TRACES_SAMPLER_ARG=0.1
416416

417417
[Live metrics](live-stream.md) provides a real-time analytics dashboard for insight into application activity and performance.
418418

419-
#### [ASP.NET Core](#tab/aspnetcore)
419+
### [ASP.NET Core](#tab/aspnetcore)
420420

421421
> [!IMPORTANT]
422422
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
@@ -432,21 +432,21 @@ builder.Services.AddOpenTelemetry().UseAzureMonitor(options => {
432432
});
433433
```
434434

435-
#### [.NET](#tab/net)
435+
### [.NET](#tab/net)
436436

437437
This feature isn't available in the Azure Monitor .NET Exporter.
438438

439-
#### [Java](#tab/java)
439+
### [Java](#tab/java)
440440

441441
The Live Metrics experience is enabled by default.
442442

443443
For more information on Java configuration, see [Configuration options: Azure Monitor Application Insights for Java](java-standalone-config.md#configuration-options-azure-monitor-application-insights-for-java).
444444

445-
#### [Java Native](#tab/java-native)
445+
### [Java native](#tab/java-native)
446446

447447
The Live Metrics are not available today for GraalVM native applications.
448448

449-
#### [Node.js](#tab/nodejs)
449+
### [Node.js](#tab/nodejs)
450450

451451
> [!IMPORTANT]
452452
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
@@ -479,7 +479,7 @@ Configuration sample
479479

480480
-->
481481

482-
#### [Python](#tab/python)
482+
### [Python](#tab/python)
483483

484484
> [!IMPORTANT]
485485
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
@@ -500,7 +500,7 @@ configure_azure_monitor(
500500

501501
You might want to enable Microsoft Entra authentication for a more secure connection to Azure, which prevents unauthorized telemetry from being ingested into your subscription.
502502

503-
#### [ASP.NET Core](#tab/aspnetcore)
503+
### [ASP.NET Core](#tab/aspnetcore)
504504

505505
We support the credential classes provided by [Azure Identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#credential-classes).
506506
@@ -540,7 +540,7 @@ We support the credential classes provided by [Azure Identity](https://github.co
540540
app.Run();
541541
```
542542

543-
#### [.NET](#tab/net)
543+
### [.NET](#tab/net)
544544

545545
We support the credential classes provided by [Azure Identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#credential-classes).
546546
@@ -593,15 +593,15 @@ We support the credential classes provided by [Azure Identity](https://github.co
593593
});
594594
```
595595

596-
#### [Java](#tab/java)
596+
### [Java](#tab/java)
597597

598598
For more information about Java, see the [Java supplemental documentation](java-standalone-config.md).
599599

600-
#### [Java Native](#tab/java-native)
600+
### [Java native](#tab/java-native)
601601

602602
Microsoft Entra ID authentication is not available for GraalVM Native applications.
603603

604-
#### [Node.js](#tab/nodejs)
604+
### [Node.js](#tab/nodejs)
605605

606606
We support the credential classes provided by [Azure Identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credential-classes).
607607
@@ -624,7 +624,7 @@ const options: AzureMonitorOpenTelemetryOptions = {
624624
useAzureMonitor(options);
625625
```
626626

627-
#### [Python](#tab/python)
627+
### [Python](#tab/python)
628628

629629
```python
630630
# Import the `ManagedIdentityCredential` class from the `azure.identity` package.
@@ -740,7 +740,7 @@ Configuring Offline Storage and Automatic Retries isn't available in Java.
740740

741741
For a full list of available configurations, see [Configuration options](./java-standalone-config.md).
742742

743-
### [Java Native](#tab/java-native)
743+
### [Java native](#tab/java-native)
744744

745745
Configuring Offline Storage and Automatic Retries isn't available in Java native image applications.
746746

@@ -828,7 +828,7 @@ You might want to enable the OpenTelemetry Protocol (OTLP) Exporter alongside th
828828
> [!NOTE]
829829
> The OTLP Exporter is shown for convenience only. We don't officially support the OTLP Exporter or any components or third-party experiences downstream of it.
830830

831-
#### [ASP.NET Core](#tab/aspnetcore)
831+
### [ASP.NET Core](#tab/aspnetcore)
832832

833833
1. Install the [OpenTelemetry.Exporter.OpenTelemetryProtocol](https://www.nuget.org/packages/OpenTelemetry.Exporter.OpenTelemetryProtocol/) package in your project.
834834
@@ -858,7 +858,7 @@ You might want to enable the OpenTelemetry Protocol (OTLP) Exporter alongside th
858858
app.Run();
859859
```
860860

861-
#### [.NET](#tab/net)
861+
### [.NET](#tab/net)
862862

863863
1. Install the [OpenTelemetry.Exporter.OpenTelemetryProtocol](https://www.nuget.org/packages/OpenTelemetry.Exporter.OpenTelemetryProtocol/) package in your project.
864864
@@ -882,15 +882,15 @@ You might want to enable the OpenTelemetry Protocol (OTLP) Exporter alongside th
882882
.AddOtlpExporter();
883883
```
884884

885-
#### [Java](#tab/java)
885+
### [Java](#tab/java)
886886

887887
For more information about Java, see the [Java supplemental documentation](java-standalone-config.md).
888888

889-
#### [Java Native](#tab/java-native)
889+
### [Java native](#tab/java-native)
890890

891891
You can't enable the OpenTelemetry Protocol (OTLP) Exporter alongside the Azure Monitor Exporter to send your telemetry to two locations.
892892

893-
#### [Node.js](#tab/nodejs)
893+
### [Node.js](#tab/nodejs)
894894

895895
1. Install the [OpenTelemetry Collector Trace Exporter](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http) and other OpenTelemetry packages in your project.
896896
@@ -901,7 +901,7 @@ You can't enable the OpenTelemetry Protocol (OTLP) Exporter alongside the Azure
901901
npm install @opentelemetry/sdk-trace-node
902902
```
903903

904-
2. Add the following code snippet. This example assumes you have an OpenTelemetry Collector with an OTLP receiver running. For details, see the [example on GitHub](https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/otlp-exporter-node).
904+
1. Add the following code snippet. This example assumes you have an OpenTelemetry Collector with an OTLP receiver running. For details, see the [example on GitHub](https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/otlp-exporter-node).
905905
906906
```typescript
907907
// Import the useAzureMonitor function, the AzureMonitorOpenTelemetryOptions class, the trace module, the ProxyTracerProvider class, the BatchSpanProcessor class, the NodeTracerProvider class, and the OTLPTraceExporter class from the @azure/monitor-opentelemetry, @opentelemetry/api, @opentelemetry/sdk-trace-base, @opentelemetry/sdk-trace-node, and @opentelemetry/exporter-trace-otlp-http packages, respectively.
@@ -920,7 +920,7 @@ You can't enable the OpenTelemetry Protocol (OTLP) Exporter alongside the Azure
920920
useAzureMonitor(options);
921921
```
922922

923-
#### [Python](#tab/python)
923+
### [Python](#tab/python)
924924

925925
1. Install the [opentelemetry-exporter-otlp](https://pypi.org/project/opentelemetry-exporter-otlp/) package.
926926
@@ -985,7 +985,7 @@ The following OpenTelemetry configurations can be accessed through environment v
985985

986986
For more information about Java, see the [Java supplemental documentation](java-standalone-config.md).
987987

988-
### [Java Native](#tab/java-native)
988+
### [Java native](#tab/java-native)
989989

990990
| Environment variable | Description |
991991
| -------------------------- | -------------------------------------------------- |

0 commit comments

Comments
 (0)