Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[monitor] Change package namespace back to @azure #12843

Merged
merged 4 commits into from
Dec 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
"versionPolicyName": "client"
},
{
"packageName": "@microsoft/opentelemetry-exporter-azure-monitor",
"packageName": "@azure/opentelemetry-exporter-azure-monitor",
"projectFolder": "sdk/monitor/opentelemetry-exporter-azure-monitor",
"versionPolicyName": "client"
},
Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ extends:
ServiceDirectory: monitor
RunUnitTests: true
Artifacts:
- name: microsoft-opentelemetry-exporter-azure-monitor
safeName: microsoftopentelemetryexporterazuremonitor
- name: azure-opentelemetry-exporter-azure-monitor
safeName: azureopentelemetryexporterazuremonitor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 1.0.0-beta.1 (Unreleased)

- Rename package to `@microsoft/opentelemetry-exporter-azure-monitor`
- Rename package to `@azure/opentelemetry-exporter-azure-monitor`
- [BREAKING] Deprecate all configuration options except for `connectionString`
- [BREAKING] Removed support for `TelemetryProcessor`

Expand Down
4 changes: 2 additions & 2 deletions sdk/monitor/opentelemetry-exporter-azure-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This exporter package assumes your application is [already instrumented](https:/

### Install the package

`npm install @microsoft/opentelemetry-exporter-azure-monitor`
`npm install @azure/opentelemetry-exporter-azure-monitor`

### Prerequisites

Expand All @@ -21,7 +21,7 @@ If you are using this package in a Node.js application, then use Node.js 8.x or
Add the exporter to your existing OpenTelemetry tracer provider (`NodeTracerProvider` / `BasicTracerProvider`)

```js
const { AzureMonitorTraceExporter } = require("@microsoft/opentelemetry-exporter-azure-monitor");
const { AzureMonitorTraceExporter } = require("@azure/opentelemetry-exporter-azure-monitor");
const { NodeTracerProvider } = require("@opentelemetry/node");
const { BatchSpanProcessor } = require("@opentelemetry/tracing");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@microsoft/opentelemetry-exporter-azure-monitor",
"name": "@azure/opentelemetry-exporter-azure-monitor",
"author": "[email protected]",
"sdk-type": "client",
"version": "1.0.0-beta.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## API Report File for "@microsoft/opentelemetry-exporter-azure-monitor"
## API Report File for "@azure/opentelemetry-exporter-azure-monitor"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code cloned from [azure-sdk-for-js/storage-blob/samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob/samples).

## `@microsoft/opentelemetry-exporter-azure-monitor`
## `@azure/opentelemetry-exporter-azure-monitor`

All changes required to enable exporting trace data to Azure Monitor were made in `tracing.ts` / `tracing.js`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@azure/abort-controller": "latest",
"@azure/identity": "latest",
"@azure/storage-blob": "latest",
"@microsoft/opentelemetry-exporter-azure-monitor": "latest",
"@azure/opentelemetry-exporter-azure-monitor": "latest",
"@opentelemetry/node": "latest",
"dotenv": "^8.2.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AzureMonitorTraceExporter } from "@microsoft/opentelemetry-exporter-azure-monitor";
import { AzureMonitorTraceExporter } from "@azure/opentelemetry-exporter-azure-monitor";
import { NodeTracerProvider } from "@opentelemetry/node";
import { BatchSpanProcessor } from "@opentelemetry/tracing";
import * as azureSdkTracing from "@azure/core-tracing";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"sideEffects": false,
"dependencies": {
"@azure/storage-blob": "latest",
"@microsoft/opentelemetry-exporter-azure-monitor": "latest",
"@azure/opentelemetry-exporter-azure-monitor": "latest",
"@opentelemetry/plugins-node-core": "latest",
"@opentelemetry/node": "latest",
"dotenv": "^8.2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AzureMonitorTraceExporter } from "@microsoft/opentelemetry-exporter-azure-monitor";
import { AzureMonitorTraceExporter } from "@azure/opentelemetry-exporter-azure-monitor";
import { NodeTracerProvider } from "@opentelemetry/node";
import { BatchSpanProcessor } from "@opentelemetry/tracing";
import * as azureSdkTracing from "@azure/core-tracing";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require("dotenv").config();

const opentelemetry = require("@opentelemetry/api");
const { BasicTracerProvider, SimpleSpanProcessor } = require("@opentelemetry/tracing");
const { AzureMonitorTraceExporter } = require("@microsoft/opentelemetry-exporter-azure-monitor");
const { AzureMonitorTraceExporter } = require("@azure/opentelemetry-exporter-azure-monitor");

const provider = new BasicTracerProvider();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"url": "https://github.com/open-telemetry/opentelemetry-js/issues"
},
"dependencies": {
"@microsoft/opentelemetry-exporter-azure-monitor": "latest",
"@azure/opentelemetry-exporter-azure-monitor": "latest",
"@opentelemetry/api": "latest",
"@opentelemetry/tracing": "latest",
"dotenv": "^8.2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"url": "https://github.com/open-telemetry/opentelemetry-js/issues"
},
"dependencies": {
"@microsoft/opentelemetry-exporter-azure-monitor": "latest",
"@azure/opentelemetry-exporter-azure-monitor": "latest",
"@opentelemetry/api": "latest",
"@opentelemetry/core": "latest",
"@opentelemetry/node": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const opentelemetry = require("@opentelemetry/api");
const { NodeTracerProvider } = require("@opentelemetry/node");
const { BatchSpanProcessor } = require("@opentelemetry/tracing");
const { AzureMonitorTraceExporter } = require("@microsoft/opentelemetry-exporter-azure-monitor");
const { AzureMonitorTraceExporter } = require("@azure/opentelemetry-exporter-azure-monitor");
const { ConsoleLogger, LogLevel } = require("@opentelemetry/core");

module.exports = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"cross-env": "^7.0.2"
},
"dependencies": {
"@microsoft/opentelemetry-exporter-azure-monitor": "latest",
"@azure/opentelemetry-exporter-azure-monitor": "latest",
"@opentelemetry/api": "latest",
"@opentelemetry/core": "latest",
"@opentelemetry/node": "latest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const opentelemetry = require("@opentelemetry/api");
const { NodeTracerProvider } = require("@opentelemetry/node");
const { BatchSpanProcessor } = require("@opentelemetry/tracing");
const { AzureMonitorTraceExporter } = require("@microsoft/opentelemetry-exporter-azure-monitor");
const { AzureMonitorTraceExporter } = require("@azure/opentelemetry-exporter-azure-monitor");
const { ConsoleLogger, LogLevel } = require("@opentelemetry/core");

module.exports = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import * as coreHttp from "@azure/core-http";
import { ApplicationInsightsClientOptionalParams } from "./models";

const packageName = "@microsoft/opentelemetry-exporter-azure-monitor";
const packageName = "@azure/opentelemetry-exporter-azure-monitor";
const packageVersion = "1.0.0";

export class ApplicationInsightsClientContext extends coreHttp.ServiceClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ autorest --typescript --v3
## Configuration

```yaml
package-name: "@microsoft/opentelemetry-exporter-azure-monitor"
package-name: "@azure/opentelemetry-exporter-azure-monitor"
title: ApplicationInsightsClient
description: Application Insights Client
generate-metadata: false
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/opentelemetry-exporter-azure-monitor/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends:
template: ../../../eng/pipelines/templates/jobs/archetype-sdk-integration.yml
parameters:
TimeoutInMinutes: 15
PackageName: "@microsoft/opentelemetry-exporter-azure-monitor"
PackageName: "@azure/opentelemetry-exporter-azure-monitor"
ResourceServiceDirectory: monitor
TestSamples: false
PostIntegrationSteps: monitor-additional-steps