Skip to content

Commit d149d41

Browse files
Merge pull request #253342 from v-jbasden/v-jbasden-deprecate-opencensus-python-articles
Deprecating three App Insights OpenCensus Python articles
2 parents ec84835 + 571ce2c commit d149d41

26 files changed

+50
-938
lines changed

.openpublishing.redirection.azure-monitor.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6319,6 +6319,21 @@
63196319
"source_path_from_root": "/articles/azure-monitor/containers/container-insights-optout-openshift-v4.md",
63206320
"redirect_url": "/azure/azure-monitor/containers/container-insights-optout",
63216321
"redirect_document_id": false
6322+
},
6323+
{
6324+
"source_path_from_root": "/articles/azure-monitor/app/opencensus-python-dependency.md",
6325+
"redirect_url": "/previous-versions/azure/azure-monitor/app/opencensus-python-dependency",
6326+
"redirect_document_id": false
6327+
},
6328+
{
6329+
"source_path_from_root": "/articles/azure-monitor/app/opencensus-python-request.md",
6330+
"redirect_url": "/previous-versions/azure/azure-monitor/app/opencensus-python-request",
6331+
"redirect_document_id": false
6332+
},
6333+
{
6334+
"source_path_from_root": "/articles/azure-monitor/app/opencensus-python.md",
6335+
"redirect_url": "/previous-versions/azure/azure-monitor/app/opencensus-python",
6336+
"redirect_document_id": false
63226337
}
63236338
]
63246339
}

articles/app-service/troubleshoot-diagnostic-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ In your application code, you use the usual logging facilities to send log messa
129129
```
130130

131131
By default, ASP.NET Core uses the [Microsoft.Extensions.Logging.AzureAppServices](https://www.nuget.org/packages/Microsoft.Extensions.Logging.AzureAppServices) logging provider. For more information, see [ASP.NET Core logging in Azure](/aspnet/core/fundamentals/logging/). For information about WebJobs SDK logging, see [Get started with the Azure WebJobs SDK](./webjobs-sdk-get-started.md#enable-console-logging)
132-
- Python applications can use the [OpenCensus package](../azure-monitor/app/opencensus-python.md) to send logs to the application diagnostics log.
132+
- Python applications can use the [OpenCensus package](/previous-versions/azure/azure-monitor/app/opencensus-python) to send logs to the application diagnostics log.
133133

134134

135135
## Stream logs

articles/azure-monitor/app/app-insights-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ This section outlines supported scenarios.
129129
* [ASP.NET](./asp-net.md)
130130
* [Java](./opentelemetry-enable.md?tabs=java)
131131
* [Node.js](./nodejs.md)
132-
* [Python](./opencensus-python.md)
132+
* [Python](/previous-versions/azure/azure-monitor/app/opencensus-python)
133133
* [ASP.NET Core](./asp-net-core.md)
134134

135135
#### Client-side JavaScript SDK

articles/azure-monitor/app/asp-net-dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ A list of the latest [currently supported modules](https://github.com/microsoft/
274274
* [User and page data](./javascript.md)
275275
* [Availability](./availability-overview.md)
276276
* Set up custom dependency tracking for [Java](opentelemetry-add-modify.md?tabs=java#add-custom-spans).
277-
* Set up custom dependency tracking for [OpenCensus Python](./opencensus-python-dependency.md).
277+
* Set up custom dependency tracking for [OpenCensus Python](/previous-versions/azure/azure-monitor/app/opencensus-python-dependency).
278278
* [Write custom dependency telemetry](./api-custom-events-metrics.md#trackdependency)
279279
* See [data model](./data-model-complete.md) for Application Insights types and data model.
280280
* Check out [platforms](./app-insights-overview.md#supported-languages) supported by Application Insights.

articles/azure-monitor/app/asp-net-trace-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Now you can easily filter out in **Transaction Search** all the messages of a pa
172172

173173
The Azure Monitor Log Handler allows you to export Python logs to Azure Monitor.
174174

175-
Instrument your application with the [OpenCensus Python SDK](./opencensus-python.md) for Azure Monitor.
175+
Instrument your application with the [OpenCensus Python SDK](/previous-versions/azure/azure-monitor/app/opencensus-python) for Azure Monitor.
176176

177177
This example shows how to send a warning level log to Azure Monitor.
178178

articles/azure-monitor/app/azure-ad-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following SDKs and features are unsupported for use with Azure AD authentica
3737
- [Application Insights Java 2.x SDK](deprecated-java-2x.md#monitor-dependencies-caught-exceptions-and-method-execution-times-in-java-web-apps).<br>
3838
Azure AD authentication is only available for Application Insights Java Agent greater than or equal to 3.2.0.
3939
- [ApplicationInsights JavaScript web SDK](javascript.md).
40-
- [Application Insights OpenCensus Python SDK](opencensus-python.md) with Python version 3.4 and 3.5.
40+
- [Application Insights OpenCensus Python SDK](/previous-versions/azure/azure-monitor/app/opencensus-python) with Python version 3.4 and 3.5.
4141
- [Certificate/secret-based Azure AD](../../active-directory/authentication/active-directory-certificate-based-authentication-get-started.md) isn't recommended for production. Use managed identities instead.
4242
- On-by-default codeless monitoring (for languages) for Azure App Service, Azure Virtual Machines/Azure Virtual Machine Scale Sets, and Azure Functions.
4343
- [Availability tests](availability-overview.md).

articles/azure-monitor/app/azure-vm-vmss-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To instrument your Node.js application, use the [SDK](./nodejs.md).
4141

4242
### [Python](#tab/python)
4343

44-
To monitor Python apps, use the [SDK](./opencensus-python.md).
44+
To monitor Python apps, use the [SDK](/previous-versions/azure/azure-monitor/app/opencensus-python).
4545

4646
---
4747

articles/azure-monitor/app/azure-web-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ There are two ways to enable monitoring for applications hosted on App Service:
3131

3232
* **Manually instrumenting the application through code** by installing the Application Insights SDK.
3333

34-
This approach is much more customizable, but it requires the following approaches: SDK for [.NET Core](./asp-net-core.md), [.NET](./asp-net.md), [Node.js](./nodejs.md), [Python](./opencensus-python.md), and a standalone agent for [Java](./opentelemetry-enable.md?tabs=java). This method also means you must manage the updates to the latest version of the packages yourself.
34+
This approach is much more customizable, but it requires the following approaches: SDK for [.NET Core](./asp-net-core.md), [.NET](./asp-net.md), [Node.js](./nodejs.md), [Python](/previous-versions/azure/azure-monitor/app/opencensus-python), and a standalone agent for [Java](./opentelemetry-enable.md?tabs=java). This method also means you must manage the updates to the latest version of the packages yourself.
3535

3636
If you need to make custom API calls to track events/dependencies not captured by default with autoinstrumentation monitoring, you need to use this method. To learn more, see [Application Insights API for custom events and metrics](./api-custom-events-metrics.md).
3737

articles/azure-monitor/app/create-workspace-resource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ For information on how to set up an Application Insights SDK for code-based moni
7070
- [Java](./opentelemetry-enable.md?tabs=java)
7171
- [JavaScript](./javascript.md)
7272
- [Node.js](./nodejs.md)
73-
- [Python](./opencensus-python.md)
73+
- [Python](/previous-versions/azure/azure-monitor/app/opencensus-python)
7474

7575
### Codeless monitoring and Visual Studio resource creation
7676

articles/azure-monitor/app/distributed-tracing-telemetry-correlation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The Application Insights agents and SDKs for .NET, .NET Core, Java, Node.js, and
2929
* [Java](./opentelemetry-enable.md?tabs=java)
3030
* [Node.js](../app/nodejs.md)
3131
* [JavaScript](./javascript.md#enable-distributed-tracing)
32-
* [Python](opencensus-python.md)
32+
* [Python](/previous-versions/azure/azure-monitor/app/opencensus-python)
3333

3434
With the proper Application Insights SDK installed and configured, tracing information is automatically collected for popular frameworks, libraries, and technologies by SDK dependency auto-collectors. The full list of supported technologies is available in the [Dependency auto-collection documentation](asp-net-dependencies.md#dependency-auto-collection).
3535

@@ -52,7 +52,7 @@ The following pages consist of language-by-language guidance to enable and confi
5252

5353
In addition to the Application Insights SDKs, Application Insights also supports distributed tracing through [OpenCensus](https://opencensus.io/). OpenCensus is an open-source, vendor-agnostic, single distribution of libraries to provide metrics collection and distributed tracing for services. It also enables the open-source community to enable distributed tracing with popular technologies like Redis, Memcached, or MongoDB. [Microsoft collaborates on OpenCensus with several other monitoring and cloud partners](https://open.microsoft.com/2018/06/13/microsoft-joins-the-opencensus-project/).
5454

55-
For more information on OpenCensus for Python, see [Set up Azure Monitor for your Python application](opencensus-python.md).
55+
For more information on OpenCensus for Python, see [Set up Azure Monitor for your Python application](/previous-versions/azure/azure-monitor/app/opencensus-python).
5656

5757
The OpenCensus website maintains API reference documentation for [Python](https://opencensus.io/api/python/trace/usage.html), [Go](https://godoc.org/go.opencensus.io), and various guides for using OpenCensus.
5858

@@ -259,7 +259,7 @@ By looking at the [Trace-Context header format](https://www.w3.org/TR/trace-cont
259259
260260
If you look at the request entry that was sent to Azure Monitor, you can see fields populated with the trace header information. You can find the data under **Logs (Analytics)** in the Azure Monitor Application Insights resource.
261261
262-
:::image type="content" source="./media/opencensus-python/0011-correlation.png" lightbox="./media/opencensus-python/0011-correlation.png" alt-text="Screenshot that shows Request telemetry in Logs (Analytics).":::
262+
:::image type="content" source="./media/distributed-tracing-telemetry-correlation/0011-correlation.png" lightbox="./media/distributed-tracing-telemetry-correlation/0011-correlation.png" alt-text="Screenshot that shows Request telemetry in Logs (Analytics).":::
263263
264264
The `id` field is in the format `<trace-id>.<span-id>`, where `trace-id` is taken from the trace header that was passed in the request and `span-id` is a generated 8-byte array for this span.
265265
@@ -303,7 +303,7 @@ When this code runs, the following prints in the console:
303303
304304
Notice that there's a `spanId` present for the log message that's within the span. The `spanId` is the same as that which belongs to the span named `hello`.
305305
306-
You can export the log data by using `AzureLogHandler`. For more information, see [Set up Azure Monitor for your Python application](./opencensus-python.md#logs).
306+
You can export the log data by using `AzureLogHandler`. For more information, see [Set up Azure Monitor for your Python application](/previous-versions/azure/azure-monitor/app/opencensus-python#logs).
307307
308308
We can also pass trace information from one component to another for proper correlation. For example, consider a scenario where there are two components, `module1` and `module2`. Module1 calls functions in Module2. To get logs from both `module1` and `module2` in a single trace, we can use the following approach:
309309

0 commit comments

Comments
 (0)