From 43e5f92d19fd64d39e59f5aaced3f4b0e8549c8a Mon Sep 17 00:00:00 2001 From: Srikanta <51379715+srnagar@users.noreply.github.com> Date: Tue, 6 Oct 2020 23:39:17 -0700 Subject: [PATCH] Update Readme samples (#16024) * Update Readme * Update CI pipelines to exclude mgmt packages * Update preview directory * Remove common dir --- sdk/monitor/ci.mgmt.yml | 4 ++++ sdk/monitor/ci.yml | 23 ++++++++++++++++++- .../README.md | 7 +++--- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/sdk/monitor/ci.mgmt.yml b/sdk/monitor/ci.mgmt.yml index c6ac5e4cb244..02da79f7339e 100644 --- a/sdk/monitor/ci.mgmt.yml +++ b/sdk/monitor/ci.mgmt.yml @@ -9,6 +9,8 @@ trigger: paths: include: - sdk/monitor/ + exclude: + - sdk/monitor/opentelemetry-exporter-azuremonitor pr: branches: @@ -20,6 +22,8 @@ pr: paths: include: - sdk/monitor/ + exclude: + - sdk/monitor/opentelemetry-exporter-azuremonitor stages: - template: ../../eng/pipelines/templates/stages/archetype-sdk-management.yml diff --git a/sdk/monitor/ci.yml b/sdk/monitor/ci.yml index 1d6b982a6727..5171f8d4a277 100644 --- a/sdk/monitor/ci.yml +++ b/sdk/monitor/ci.yml @@ -9,7 +9,17 @@ trigger: paths: include: - sdk/monitor/ - - eng/common/ + exclude: + - sdk/monitor/mgmt-v2015_04_01 + - sdk/monitor/mgmt-v2015_07_01 + - sdk/monitor/mgmt-v2016_03_01 + - sdk/monitor/mgmt-v2017_03_01_preview + - sdk/monitor/mgmt-v2017_04_01 + - sdk/monitor/mgmt-v2017_05_01_preview + - sdk/monitor/mgmt-v2018_01_01 + - sdk/monitor/mgmt-v2018_03_01 + - sdk/monitor/mgmt-v2018_04_16 + - sdk/monitor/mgmt-v2018_09_01 pr: branches: @@ -21,6 +31,17 @@ pr: paths: include: - sdk/monitor/ + exclude: + - sdk/monitor/mgmt-v2015_04_01 + - sdk/monitor/mgmt-v2015_07_01 + - sdk/monitor/mgmt-v2016_03_01 + - sdk/monitor/mgmt-v2017_03_01_preview + - sdk/monitor/mgmt-v2017_04_01 + - sdk/monitor/mgmt-v2017_05_01_preview + - sdk/monitor/mgmt-v2018_01_01 + - sdk/monitor/mgmt-v2018_03_01 + - sdk/monitor/mgmt-v2018_04_16 + - sdk/monitor/mgmt-v2018_09_01 extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml diff --git a/sdk/monitor/opentelemetry-exporter-azuremonitor/README.md b/sdk/monitor/opentelemetry-exporter-azuremonitor/README.md index e8993f552c70..f6dc13a643bc 100644 --- a/sdk/monitor/opentelemetry-exporter-azuremonitor/README.md +++ b/sdk/monitor/opentelemetry-exporter-azuremonitor/README.md @@ -40,19 +40,19 @@ right corner. ### Creating exporter for Azure Monitor ```java -AzureMonitorExporter azureMonitorExporter = new MonitorExporterClientBuilder() +AzureMonitorExporter azureMonitorExporter = new AzureMonitorExporterBuilder() .instrumentationKey("{instrumentation-key}") .buildExporter(); ``` #### Exporting span data -The following example shows how to export a collection of available SpanData to Azure Monitor thorugh the +The following example shows how to export a collection of available [Spans](span_data) to Azure Monitor through the `AzureMonitorExporter` ```java -AzureMonitorExporter azureMonitorExporter = new MonitorExporterClientBuilder() +AzureMonitorExporter azureMonitorExporter = new AzureMonitorExporterBuilder() .instrumentationKey("{instrumentation-key}") .buildExporter(); @@ -111,5 +111,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [application_insights_intro]: https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview [azure_portal]: https://ms.portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/microsoft.insights%2Fcomponents [opentelemetry_io]: https://opentelemetry.io/ +[span_data]: https://opentelemetry.lightstep.com/spans ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%monitor%2Fopentelemetry-exporter-azuremonitor%2FREADME.png)