Skip to content

Add/Update telemetry events#27356

Open
dabhattimsft wants to merge 3 commits intomainfrom
user/dabhatti/winmlTelem
Open

Add/Update telemetry events#27356
dabhattimsft wants to merge 3 commits intomainfrom
user/dabhatti/winmlTelem

Conversation

@dabhattimsft
Copy link

Description

ModelLoadStart/End - InferenceSession::LoadWithLoader, InferenceSession::LoadOrtModelWithLoader
SessionCreationEnd - InferenceSession::Initialize
RegisterEpLibraryWithLibPath, RegisterEpLibraryStart/End - Environment::RegisterExecutionProviderLibrary

Motivation and Context

To better measure health

Darshak Bhatti added 3 commits February 15, 2026 22:48
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can commit the suggested changes from lintrunner.

}

void Telemetry::LogSessionCreationEnd(uint32_t session_id,
const common::Status& status) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const common::Status& status) const {
const common::Status& status) const {

}

void Telemetry::LogRegisterEpLibraryWithLibPath(const std::string& registration_name,
const std::string& lib_path) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const std::string& lib_path) const {
const std::string& lib_path) const {

}

void Telemetry::LogRegisterEpLibraryEnd(const std::string& registration_name,
const common::Status& status) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const common::Status& status) const {
const common::Status& status) const {

virtual void LogModelLoadEnd(uint32_t session_id, const common::Status& status) const;

virtual void LogSessionCreationEnd(uint32_t session_id,
const common::Status& status) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const common::Status& status) const;
const common::Status& status) const;

virtual void LogRunStart(uint32_t session_id) const;

virtual void LogRegisterEpLibraryWithLibPath(const std::string& registration_name,
const std::string& lib_path) const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const std::string& lib_path) const;
const std::string& lib_path) const;

}

void WindowsTelemetry::LogRegisterEpLibraryWithLibPath(const std::string& registration_name,
const std::string& lib_path) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const std::string& lib_path) const {
const std::string& lib_path) const {

}

void WindowsTelemetry::LogRegisterEpLibraryEnd(const std::string& registration_name,
const common::Status& status) const {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const common::Status& status) const {
const common::Status& status) const {

void LogModelLoadEnd(uint32_t session_id, const common::Status& status) const override;

void LogSessionCreationEnd(uint32_t session_id,
const common::Status& status) const override;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const common::Status& status) const override;
const common::Status& status) const override;

void LogRegisterEpLibraryStart(const std::string& registration_name) const override;

void LogRegisterEpLibraryEnd(const std::string& registration_name,
const common::Status& status) const override;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const common::Status& status) const override;
const common::Status& status) const override;

Comment on lines +980 to +981
constexpr static long long kRuntimePerfInitialInterval = 2 * 1000 * 1000; // 2 seconds in (us)
constexpr static long long kRuntimePerfMaxInterval = 1000 * 1000 * 60 * 10; // 10 minutes in (us)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
constexpr static long long kRuntimePerfInitialInterval = 2 * 1000 * 1000; // 2 seconds in (us)
constexpr static long long kRuntimePerfMaxInterval = 1000 * 1000 * 60 * 10; // 10 minutes in (us)
constexpr static long long kRuntimePerfInitialInterval = 2 * 1000 * 1000; // 2 seconds in (us)
constexpr static long long kRuntimePerfMaxInterval = 1000 * 1000 * 60 * 10; // 10 minutes in (us)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant