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

WARNING: An instrument with name ... already exists #4993

Open
dkliban opened this issue Jan 29, 2024 · 1 comment
Open

WARNING: An instrument with name ... already exists #4993

dkliban opened this issue Jan 29, 2024 · 1 comment
Labels

Comments

@dkliban
Copy link
Member

dkliban commented Jan 29, 2024

Version
3.44.1

Describe the bug

Warnings are constantly emitted in the content app logs.

pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:20 +0000] "GET /pulp/content/foo/foo/gems/regexp_parser-2.9.0.gem HTTP/1.1" 200 59227 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:20 +0000] "GET /pulp/content/foo/foo/gems/rack-test-2.1.0.gem HTTP/1.1" 200 21841 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:20 +0000] "GET /pulp/content/foo/foo/gems/mini_mime-1.1.5.gem HTTP/1.1" 200 36181 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:20 +0000] "GET /pulp/content/foo/foo/gems/matrix-0.4.2.gem HTTP/1.1" 200 27958 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/gems/public_suffix-5.0.4.gem HTTP/1.1" 200 103787 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/gems/addressable-2.8.6.gem HTTP/1.1" 200 107893 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/gems/capybara-3.40.0.gem HTTP/1.1" 200 384893 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/quick/Marshal.4.8/bowser-1.1.0.gemspec.rz HTTP/1.1" 200 1257 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/gems/beryl-0.3.1.gem HTTP/1.1" 200 17712 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/gems/bowser-1.1.0.gem HTTP/1.1" 200 25389 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.active_requests, type UpDownCounter, unit requests and description measures the number of concurrent HTTP requests those are currently in flight has been created already.
::ffff:10.129.16.9 [29/Jan/2024:21:40:21 +0000] "GET /pulp/content/foo/foo/latest_specs.4.8.gz HTTP/1.1" 200 1521682 "-" "Ruby, RubyGems/3.4.10 x86_64-linux Ruby/3.2.2 (2023-03-30 patchlevel 53)"
pulp [None]: opentelemetry.sdk.metrics._internal:WARNING: An instrument with name http.server.duration, type Histogram, unit ms and description measures the duration of the inbound HTTP request has been created already.

THe command used to start the service is:

/usr/local/bin/opentelemetry-instrument --service_name pulp-content --exporter_otlp_endpoint http://pulp-otel-collector-svc:4318 --exporter_otlp_insecure true pulpcore-content --access-logfile -

@lubosmj
Copy link
Member

lubosmj commented Mar 25, 2024

I am seeing these items being repeated in my oci-env too:

An instrument with name http.server.duration
An instrument with name http.server.active_requests

Are not these the defaults coming from the aiohttp instrumentation?

See open-telemetry/opentelemetry-python-contrib#2168 and open-telemetry/opentelemetry-python-contrib#1335 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants