Skip to content
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

Using metrics can fail with 'nested task error: AssertionError: Multiple concurrent writes to Dict detected!' #119

Open
karlmutch-cynch opened this issue Jan 15, 2025 · 0 comments

Comments

@karlmutch-cynch
Copy link

[1] rehash!(h::Dict{StaticBoundedAttributes, OpenTelemetrySDK.DataPoint{OpenTelemetrySDK.HistogramValue{Float64, 10, 11}, Nothing}}, newsz::Int64)

@ Base ./dict.jl:182

[2] _setindex!
@ ./dict.jl:337 [inlined]
get!(default::OpenTelemetrySDK.var"#55#56"{Float64, HistogramAgg{Float64, Nothing, OpenTelemetrySDK.var"#53#54", 10, 11}}, h::Dict{StaticBoundedAttributes, OpenTelemetrySDK.DataPoint{OpenTelemetrySDK.HistogramValue{Float64, 10, 11}, Nothing}}, key::StaticBoundedAttributes{@NamedTuple{http.flavor::String, http.method::String, net.peer.name::SubString{String}, net.peer.port::SubString{String}}})
@ Base ./dict.jl:470
[4] get!(f::Function, agg::OpenTelemetrySDK.AggregationStore{OpenTelemetrySDK.DataPoint{OpenTelemetrySDK.HistogramValue{Float64, 10, 11}, Nothing}}, attrs::StaticBoundedAttributes{@NamedTuple{http.flavor::String, http.method::String, net.peer.name::SubString{String}, net.peer.port::SubString{String}}})
@ OpenTelemetrySDK /usr/local/.julia/packages/OpenTelemetrySDK/xNwnQ/src/metric/aggregation.jl:73

[5] HistogramAgg
@ /usr/local/.julia/packages/OpenTelemetrySDK/xNwnQ/src/metric/aggregation.jl:233 [inlined]
[6] (::OpenTelemetrySDK.Metric{HistogramAgg{Float64, Nothing, OpenTelemetrySDK.var"#53#54", 10, 11}})(m::Measurement{Float64, StaticBoundedAttributes{@NamedTuple{http.flavor::String, http.method::String, net.peer.name::SubString{String}, net.peer.port::SubString{String}}}})
@ OpenTelemetrySDK /usr/local/.julia/packages/OpenTelemetrySDK/xNwnQ/src/metric/meter_provider.jl:45
[7] push!(p::MeterProvider, ins_m::Pair{Histogram{Float64}, Measurement{Float64, StaticBoundedAttributes{@NamedTuple{http.flavor::String, http.method::String, net.peer.name::SubString{String}, net.peer.port::SubString{String}}}}})

And so on. This was occurring when using the automatic HTTP instrumentation.

Thanks

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

No branches or pull requests

1 participant