Skip to content

Commit

Permalink
use seconds for otlp export, as specified in open-telemetry/opentelem…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Jun 5, 2023
1 parent 399e8be commit 1daecbb
Showing 1 changed file with 34 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,43 +132,42 @@ void timerWithHistogram() {
+ " bucket_counts: 0\n" + " bucket_counts: 0\n" + " bucket_counts: 0\n"
+ " bucket_counts: 0\n" + " bucket_counts: 0\n" + " bucket_counts: 0\n"
+ " bucket_counts: 0\n" + " bucket_counts: 0\n" + " bucket_counts: 0\n"
+ " explicit_bounds: 1.0\n" + " explicit_bounds: 1.048576\n"
+ " explicit_bounds: 1.398101\n" + " explicit_bounds: 1.747626\n"
+ " explicit_bounds: 2.097151\n" + " explicit_bounds: 2.446676\n"
+ " explicit_bounds: 2.796201\n" + " explicit_bounds: 3.145726\n"
+ " explicit_bounds: 3.495251\n" + " explicit_bounds: 3.844776\n"
+ " explicit_bounds: 4.194304\n" + " explicit_bounds: 5.592405\n"
+ " explicit_bounds: 6.990506\n" + " explicit_bounds: 8.388607\n"
+ " explicit_bounds: 9.786708\n" + " explicit_bounds: 11.184809\n"
+ " explicit_bounds: 12.58291\n" + " explicit_bounds: 13.981011\n"
+ " explicit_bounds: 15.379112\n" + " explicit_bounds: 16.777216\n"
+ " explicit_bounds: 22.369621\n" + " explicit_bounds: 27.962026\n"
+ " explicit_bounds: 33.554431\n" + " explicit_bounds: 39.146836\n"
+ " explicit_bounds: 44.739241\n" + " explicit_bounds: 50.331646\n"
+ " explicit_bounds: 55.924051\n" + " explicit_bounds: 61.516456\n"
+ " explicit_bounds: 67.108864\n" + " explicit_bounds: 89.478485\n"
+ " explicit_bounds: 111.848106\n" + " explicit_bounds: 134.217727\n"
+ " explicit_bounds: 156.587348\n" + " explicit_bounds: 178.956969\n"
+ " explicit_bounds: 201.32659\n" + " explicit_bounds: 223.696211\n"
+ " explicit_bounds: 246.065832\n" + " explicit_bounds: 268.435456\n"
+ " explicit_bounds: 357.913941\n" + " explicit_bounds: 447.392426\n"
+ " explicit_bounds: 536.870911\n" + " explicit_bounds: 626.349396\n"
+ " explicit_bounds: 715.827881\n" + " explicit_bounds: 805.306366\n"
+ " explicit_bounds: 894.784851\n" + " explicit_bounds: 984.263336\n"
+ " explicit_bounds: 1073.741824\n" + " explicit_bounds: 1431.655765\n"
+ " explicit_bounds: 1789.569706\n" + " explicit_bounds: 2147.483647\n"
+ " explicit_bounds: 2505.397588\n" + " explicit_bounds: 2863.311529\n"
+ " explicit_bounds: 3221.22547\n" + " explicit_bounds: 3579.139411\n"
+ " explicit_bounds: 3937.053352\n" + " explicit_bounds: 4294.967296\n"
+ " explicit_bounds: 5726.623061\n" + " explicit_bounds: 7158.278826\n"
+ " explicit_bounds: 8589.934591\n" + " explicit_bounds: 10021.590356\n"
+ " explicit_bounds: 11453.246121\n" + " explicit_bounds: 12884.901886\n"
+ " explicit_bounds: 14316.557651\n" + " explicit_bounds: 15748.213416\n"
+ " explicit_bounds: 17179.869184\n" + " explicit_bounds: 22906.492245\n"
+ " explicit_bounds: 28633.115306\n" + " explicit_bounds: 30000.0\n" + " }\n"
+ " explicit_bounds: 0.001\n" + " explicit_bounds: 0.001048576\n"
+ " explicit_bounds: 0.001398101\n" + " explicit_bounds: 0.001747626\n"
+ " explicit_bounds: 0.002097151\n" + " explicit_bounds: 0.002446676\n"
+ " explicit_bounds: 0.002796201\n" + " explicit_bounds: 0.003145726\n"
+ " explicit_bounds: 0.003495251\n" + " explicit_bounds: 0.003844776\n"
+ " explicit_bounds: 0.004194304\n" + " explicit_bounds: 0.005592405\n"
+ " explicit_bounds: 0.006990506\n" + " explicit_bounds: 0.008388607\n"
+ " explicit_bounds: 0.009786708\n" + " explicit_bounds: 0.011184809\n"
+ " explicit_bounds: 0.01258291\n" + " explicit_bounds: 0.013981011\n"
+ " explicit_bounds: 0.015379112\n" + " explicit_bounds: 0.016777216\n"
+ " explicit_bounds: 0.022369621\n" + " explicit_bounds: 0.027962026\n"
+ " explicit_bounds: 0.033554431\n" + " explicit_bounds: 0.039146836\n"
+ " explicit_bounds: 0.044739241\n" + " explicit_bounds: 0.050331646\n"
+ " explicit_bounds: 0.055924051\n" + " explicit_bounds: 0.061516456\n"
+ " explicit_bounds: 0.067108864\n" + " explicit_bounds: 0.089478485\n"
+ " explicit_bounds: 0.111848106\n" + " explicit_bounds: 0.134217727\n"
+ " explicit_bounds: 0.156587348\n" + " explicit_bounds: 0.178956969\n"
+ " explicit_bounds: 0.20132659\n" + " explicit_bounds: 0.223696211\n"
+ " explicit_bounds: 0.246065832\n" + " explicit_bounds: 0.268435456\n"
+ " explicit_bounds: 0.357913941\n" + " explicit_bounds: 0.447392426\n"
+ " explicit_bounds: 0.536870911\n" + " explicit_bounds: 0.626349396\n"
+ " explicit_bounds: 0.715827881\n" + " explicit_bounds: 0.805306366\n"
+ " explicit_bounds: 0.894784851\n" + " explicit_bounds: 0.984263336\n"
+ " explicit_bounds: 1.073741824\n" + " explicit_bounds: 1.431655765\n"
+ " explicit_bounds: 1.789569706\n" + " explicit_bounds: 2.147483647\n"
+ " explicit_bounds: 2.505397588\n" + " explicit_bounds: 2.863311529\n"
+ " explicit_bounds: 3.22122547\n" + " explicit_bounds: 3.579139411\n"
+ " explicit_bounds: 3.937053352\n" + " explicit_bounds: 4.294967296\n"
+ " explicit_bounds: 5.726623061\n" + " explicit_bounds: 7.158278826\n"
+ " explicit_bounds: 8.589934591\n" + " explicit_bounds: 10.021590356\n"
+ " explicit_bounds: 11.453246121\n" + " explicit_bounds: 12.884901886\n"
+ " explicit_bounds: 14.316557651\n" + " explicit_bounds: 15.748213416\n"
+ " explicit_bounds: 17.179869184\n" + " explicit_bounds: 22.906492245\n"
+ " explicit_bounds: 28.633115306\n" + " explicit_bounds: 30.0\n" + " }\n"
+ " aggregation_temporality: AGGREGATION_TEMPORALITY_CUMULATIVE\n" + "}\n");
}

@Test
void timerWithPercentiles() {
Timer timer = Timer.builder("service.requests").publishPercentiles(0.5, 0.9, 0.99).register(registry);
Expand Down

0 comments on commit 1daecbb

Please sign in to comment.