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
TEST: add some random logging #125176
base: gh/c-p-i-o/5/base
Are you sure you want to change the base?
TEST: add some random logging #125176
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/125176
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 41f4958 with merge base e7631d6 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Summary: Testing OTEL in PyTorch to see what automation workflows break. This change won't be commited into the main branch. ghstack-source-id: 6043560b23b4b0588ac441d6602d0980ae025c9b Pull Request resolved: #125176
torch/csrc/serialization.cpp
Outdated
opentelemetry::trace::StartSpanOptions start; | ||
start.start_system_time = SystemTimestamp(std::chrono::nanoseconds(300)); | ||
std::shared_ptr<opentelemetry::metrics::Counter<uint64_t>> counter{ | ||
new opentelemetry::metrics::NoopCounter<uint64_t>("testi2", "none", "unitless")}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rather than binding to concrete implementation you want to pull it from the Meter:
auto meter = opentelemetry::metrics::Provider::GetMeterProvider()->GetMeter(...);
auto counter = meter->CreateUInt64Counter(...);
Also, it's more efficient to create counter once as static or member variable.
Summary: Testing OTEL in PyTorch to see what automation workflows break. This change won't be commited into the main branch. ghstack-source-id: d7b9eaa8b8489c9cee3053a8b1b3b801bb4d6c45 Pull Request resolved: #125176
Summary: Testing OTEL in PyTorch to see what automation workflows break. This change won't be commited into the main branch. ghstack-source-id: b7121de3b50bd5c7569eba3f7dd52b0148c05619 Pull Request resolved: #125176
Summary: Testing OTEL in PyTorch to see what automation workflows break. This change won't be commited into the main branch. ghstack-source-id: 182052093070b5182350a1b2c6d1c20e6b4607a6 Pull Request resolved: #125176
Summary: Testing OTEL in PyTorch to see what automation workflows break. This change won't be commited into the main branch. ghstack-source-id: 099915604e42c865b6de349fd66c99dc81885c3d Pull Request resolved: #125176
Summary: Testing OTEL in PyTorch to see what automation workflows break. This change won't be commited into the main branch. ghstack-source-id: 55109b7fd9162bafaff03a5dd21442637b64d01c Pull Request resolved: #125176
@c-p-i-o has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Stack from ghstack (oldest at bottom):
Summary:
Testing OTEL in PyTorch to see what automation workflows break.
This change won't be commited into the main branch.
Differential Revision: D56786948