Top Level Namespace
Defined Under Namespace
Classes: Array, Hash, MetarTafApi, Parser, ServerApi, Sources, String, Struct, Symbol
Constant Summary
collapse
- TEST_METAR1 =
"2023-09-12 23:30:00\nKJFK 131751Z 22015KT 10SM FEW040 SCT100 23/16 A2992 RMK AO2 SLP132 T02330156 10233 20194 58005"
- TEST_METAR =
"2023-09-12 23:30:00\nUUEE 122330Z 08003MPS 9000 NSC 08/08 Q1022 R06C/CLRD62 NOSIG"
Instance Method Summary
collapse
Instance Method Details
#profile(*a) {|a[1..], b| ... } ⇒ Object
9
10
11
12
13
14
|
# File 'src/sources.rb', line 9
def profile(*a, &b)
time = Time.now
yield *a[1..], b
ensure
puts "#{a[0]}: #{Time.now - time} sec"
end
|
#with_otel(ctx, &block) ⇒ Object
20
|
# File 'src/sources.rb', line 20
def with_otel(ctx, &block) = OpenTelemetry::Context.with_current(ctx, &block)
|