Microsoft released for preview a series of updates to its Azure Monitor OpenTelemetry Exporter packages for .NET, Node.js, and Python applications. The new features include: exporting OpenTelemetry metrics to Azure Monitor Application Insights (AMAI), enhanced control of sampling for traces and spans, and caching and delivery retries of telemetry data on temporary disconnections to Azure Monitor Application Insights.
Azure Monitor is a suite of tools for gathering, analyzing, and responding to infrastructure and application telemetry data from the cloud and on-premises environments. AMAI is one of the tools within Azure Monitor, and it provides application performance monitoring (APM) to its users. In addition, Azure Monitor Application Insights supports distributed tracing, one of the pillars of the Observability paradigm, across multiple applications.
OpenTelemetry is a framework that provides vendor-agnostic APIs, SDKs, and tools for consuming, transforming, and exporting telemetry data to Observability back-ends. In a blog post in 2021, Microsoft outlined its roadmap for integrating OpenTelemetry with its wider Azure Monitor ecosystem. The immediate focus of this was to build direct exporters from OpenTelemetry-based applications to AMAI as opposed to the OpenTelemetry de facto route of an OTLP exporter to Azure Monitor via the OpenTelemetry Collector.
A sample of the direct exporter in a Node.js application with OpenTelemetry tracing in place would be:
const AzureMonitorTraceExporter = require("@azure/monitor-opentelemetry-exporter");
const NodeTracerProvider = require("@opentelemetry/sdk-trace-node");
const BatchSpanProcessor = require("@opentelemetry/sdk-trace-base");
const provider = new NodeTracerProvider(
resource: new Resource(
[SemanticResourceAttributes.SERVICE_NAME]: "basic-service",
),
);
provider.register();
// Create an exporter instance
const exporter = new AzureMonitorTraceExporter( "<your connection string>"
);
// Add the exporter to the provider
provider.addSpanProcessor(
new BatchSpanProcessor(exporter,
bufferTimeout: 15000,
bufferSize: 1000
)
);
With the release of the new updates to the Azure Monitor OpenTelemetry Exporter packages, exporting metrics to the AMAI would now be possible, as shown below:
const MeterProvider, PeriodicExportingMetricReader = require("@opentelemetry/sdk-metrics");
const Resource = require("@opentelemetry/resources");
const AzureMonitorMetricExporter = require("@azure/monitor-opentelemetry-exporter");
// Add the exporter into the MetricReader and register it with the MeterProvider
const provider = new MeterProvider();
const exporter = new AzureMonitorMetricExporter();
const metricReaderOptions =
exporter: exporter,
;
const metricReader = new PeriodicExportingMetricReader(metricReaderOptions);
provider.addMetricReader(metricReader);
);
To manage the amount of telemetry data sent to Application Insights, the packages now include a sampler that controls the percentage of traces that are sent. For the Node.js trace example from earlier, this would look like:
import ApplicationInsightsSampler, AzureMonitorTraceExporter from "@azure/monitor-opentelemetry-exporter";
// Sampler expects a sample rate of between 0 and 1 inclusive
// A rate of 0.75 means approximately 75% of traces are sent
const aiSampler = new ApplicationInsightsSampler(0.75);
const provider = new NodeTracerProvider(
resource: new Resource(
[SemanticResourceAttributes.SERVICE_NAME]: "basic-service",
),
sampler: aiSampler
);
Finally, in the event of connection failures to AMAI, the direct exporters write their payloads to local storage and periodically attempt redeliveries over a 48-hour period. These settings can be configured on the instantiation of an exporter, as shown below:
const exporter = new AzureMonitorTraceExporter(
connectionString:
process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"],
storageDirectory: "C:\SomeDirectory", // your desired location
disableOfflineStorage: false // enabled by default, set to disable
);
MONTREAL – Lightspeed Commerce Inc. says it is conducting a review of its business and operations including talks relating to a range of potential strategic alternatives.
The Montreal-based payments technology company made the comments after reports concerning a potential transaction involving the company.
Lightspeed says it periodically undertakes a review of its business and operations with a view of realizing its full potential.
A strategic review is often seen by investors as a prelude to a sale by a company.
Lightspeed says its board of directors is committed to acting in the best interests of the company and its stakeholders.
Company founder Dax Dasilva returned to the role of chief executive officer earlier this year and has been working to return the company to profitability.
This report by The Canadian Press was first published Sept. 26, 2024.
OTTAWA – Bank of Canada governor Tiff Macklem says there is a lot of uncertainty around how artificial intelligence could affect the economy moving forward, including the labour market and price growth.
In a speech in Toronto at the Economics of Artificial Intelligence Conference, the governor said Friday that the central bank is approaching the issue cautiously to get a better understanding of how AI could affect its job of keeping inflation low and stable.
“Be wary of anyone who claims to know where AI will take us. There is too much uncertainty to be confident,” Macklem said in prepared remarks.
“We don’t know how quickly AI will continue to advance. And we don’t know the timing and extent of its economic and social impacts.”
The governor said AI has the potential of increasing labour productivity, which would raise living standards and grow the economy without boosting inflation.
In the short-term, he said investment in AI is adding to demand and could be inflationary.
However, Macklem also highlighted more pessimistic scenarios, where AI could destroy more jobs than it creates or lead to less competition rather than more.
The governor called on academics and businesses to work together to shed more light on the potential effects of AI on the economy.
“When you enter a dark room, you don’t go charging in. You cautiously feel your way around. And you try to find the light switch. That is what we are doing. What we central bankers need is more light,” he said.
This report by The Canadian Press was first published Sept. 20, 2024.
CHICAGO (AP) — United Airlines has struck a deal with Elon Musk’s SpaceX to offer satellite-based Starlink WiFi service on flights within the next several years.
The airline said Friday the service will be free to passengers.
United said it will begin testing the service early next year and begin offering it on some flights by later in 2025.
Financial details of the deal were not disclosed.
The announcement comes as airlines rush to offer more amenities as a way to stand out when passengers pick a carrier for a trip. United’s goal is to make sitting on a plane pretty much like being on the ground when it comes to browsing the internet, streaming entertainment and playing games.
“Everything you can do on the ground, you’ll soon be able to do on board a United plane at 35,000 feet, just about anywhere in the world,” CEO Scott Kirby said in announcing the deal.
The airline says Starlink will allow passengers to get internet access even over oceans and polar regions where traditional cell or Wi-Fi signals may be weak or missing.