Skip to content

Commit 9809d79

Browse files
committed
Add LICENSE header and fixes the use of a constant.
1 parent 96300f5 commit 9809d79

File tree

1 file changed

+15
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server

1 file changed

+15
-3
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-server/src/opentelemetry/instrumentation/aiohttp_server/__init__.py

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1+
# Copyright 2020, OpenTelemetry Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
import urllib
216
from aiohttp import web
317
from multidict import CIMultiDictProxy
418
from timeit import default_timer
519
from typing import Tuple, Dict, List, Union
620

721
from opentelemetry import context, trace, metrics
22+
from opentelemetry.context import _SUPPRESS_HTTP_INSTRUMENTATION_KEY
823
from opentelemetry.instrumentation.aiohttp_server.package import _instruments
924
from opentelemetry.instrumentation.aiohttp_server.version import __version__
1025
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
@@ -17,9 +32,6 @@
1732
from opentelemetry.util.http import get_excluded_urls
1833
from opentelemetry.util.http import remove_url_credentials
1934

20-
21-
_SUPPRESS_HTTP_INSTRUMENTATION_KEY = "suppress_http_instrumentation"
22-
2335
_duration_attrs = [
2436
SpanAttributes.HTTP_METHOD,
2537
SpanAttributes.HTTP_HOST,

0 commit comments

Comments
 (0)