Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into krish-fix-perf
Browse files Browse the repository at this point in the history
  • Loading branch information
krishung5 committed Oct 2, 2024
2 parents dbf5c43 + 35a1c1f commit 8b17fbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metric.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ Metric::SendCreateMetricRequest()
void
Metric::SendIncrementRequest(const double& value)
{
py::gil_scoped_release release;
try {
CheckIfCleared();
std::unique_ptr<Stub>& stub = Stub::GetOrCreateInstance();
Expand Down Expand Up @@ -204,6 +205,7 @@ Metric::SendSetValueRequest(const double& value)
void
Metric::SendObserveRequest(const double& value)
{
py::gil_scoped_release release;
try {
CheckIfCleared();
std::unique_ptr<Stub>& stub = Stub::GetOrCreateInstance();
Expand Down

0 comments on commit 8b17fbd

Please sign in to comment.