Skip to content

Commit

Permalink
Add missing copyright headers (#302)
Browse files Browse the repository at this point in the history
* Add IBM to the LICENSE

* Add missing copyright headers
  • Loading branch information
Andrey Slotin authored Mar 15, 2021
1 parent b847dcc commit b6e9935
Show file tree
Hide file tree
Showing 180 changed files with 546 additions and 3 deletions.
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2019 Instana
Copyright (c) 2021 IBM Corp.
Copyright (c) 2016 Instana, Inc. https://www.instana.com/

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 3 additions & 0 deletions bin/aws-lambda/build_and_publish_lambda_layer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import os
import sys
import json
Expand Down
4 changes: 4 additions & 0 deletions bin/create_general_release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

# Script to make a new python-sensor release on Github
# Requires the Github CLI to be installed and configured: https://github.com/cli/cli

Expand Down
4 changes: 4 additions & 0 deletions bin/create_lambda_release.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

# Script to make a new AWS Lambda Layer release on Github
# Requires the Github CLI to be installed and configured: https://github.com/cli/cli

Expand Down
3 changes: 3 additions & 0 deletions example/asyncio/aioclient.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

from __future__ import absolute_import

import aiohttp
Expand Down
3 changes: 3 additions & 0 deletions example/asyncio/aioserver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

import os
import asyncio
import asynqp
Expand Down
3 changes: 3 additions & 0 deletions example/autoprofile/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import time
import threading
import random
Expand Down
3 changes: 3 additions & 0 deletions example/carry_context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

#
# This example illustrates how to carry context from a syncronous tracing context into
# an asynchronous one.
Expand Down
4 changes: 4 additions & 0 deletions example/opentracing_vanilla.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# encoding=utf-8

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2018

import time

import opentracing
Expand Down
4 changes: 4 additions & 0 deletions example/simple.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# encoding=utf-8

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016

import os
import sys
import time
Expand Down
3 changes: 3 additions & 0 deletions example/xmlrpc/rpcclient.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

import xmlrpc.client

import time
Expand Down
3 changes: 3 additions & 0 deletions example/xmlrpc/rpcserver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

from xmlrpc.server import SimpleXMLRPCServer

import opentracing
Expand Down
3 changes: 3 additions & 0 deletions instana/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

"""
This module provides "python -m instana" functionality. This is used for basic module
information display and a IPython console to diagnose environments.
Expand Down
3 changes: 3 additions & 0 deletions instana/agent/aws_fargate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
The Instana agent (for AWS Fargate) that manages
monitoring state and reporting that data.
Expand Down
3 changes: 3 additions & 0 deletions instana/agent/aws_lambda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
The Instana agent (for AWS Lambda functions) that manages
monitoring state and reporting that data.
Expand Down
3 changes: 3 additions & 0 deletions instana/agent/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Base class for all the agent flavors
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/agent/host.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
The in-process Instana agent (for host based processes) that manages
monitoring state and reporting that data.
Expand Down
3 changes: 3 additions & 0 deletions instana/agent/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
The in-process Instana agent (for testing & the test suite) that manages
monitoring state and reporting that data.
Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/frame_cache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020


import threading
import os
Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/profile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import math
import os
import uuid
Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/profiler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import threading
import os
import signal
Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import sys
import signal

Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/sampler_scheduler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import time
import random

Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/samplers/allocation_sampler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import threading

from ...log import logger
Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/samplers/block_sampler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import sys
import threading
import signal
Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/samplers/cpu_sampler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import threading
import signal

Expand Down
3 changes: 3 additions & 0 deletions instana/autoprofile/schedule.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

import threading
import time

Expand Down
3 changes: 3 additions & 0 deletions instana/collector/aws_fargate.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
AWS Fargate Collector: Manages the periodic collection of metrics & snapshot data
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/aws_lambda.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
AWS Lambda Collector: Manages the periodic collection of metrics & snapshot data
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
A Collector launches a background thread and continually collects & reports data. The data
can be any combination of metrics, snapshot data and spans.
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/helpers/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Base class for the various helpers that can be used by Collectors. Helpers assist
in the data collection for various entities such as host, hardware, AWS Task, ec2,
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/helpers/fargate/container.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

""" Module to handle the collection of container metrics in AWS Fargate """
from ....log import logger
from ....util import DictionaryOfStan
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/helpers/fargate/docker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

""" Module to handle the collection of Docker metrics in AWS Fargate """
from __future__ import division
from ....log import logger
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/helpers/fargate/task.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

""" Module to assist in the data collection about the AWS Fargate task that is running this process """
from ....log import logger
from ..base import BaseHelper
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/helpers/process.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

""" Collection helper for the process """
import os
import pwd
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/helpers/runtime.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

""" Collection helper for the Python runtime """
import os
import gc
Expand Down
3 changes: 3 additions & 0 deletions instana/collector/host.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Host Collector: Manages the periodic collection of metrics & snapshot data
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/configurator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

"""
This file contains a config object that will hold configuration options for the package.
Defaults are set and can be overridden after package load.
Expand Down
3 changes: 3 additions & 0 deletions instana/fsm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016

from __future__ import absolute_import

import os
Expand Down
3 changes: 3 additions & 0 deletions instana/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2018

import os
from string import Template

Expand Down
3 changes: 3 additions & 0 deletions instana/hooks/hook_uwsgi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

"""
The uwsgi and uwsgidecorators packages are added automatically to the Python environment
when running under uWSGI. Here we attempt to detect the presence of these packages and
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/aiohttp/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

from __future__ import absolute_import

import opentracing
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/aiohttp/server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

from __future__ import absolute_import

import opentracing
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/asgi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Instana ASGI Middleware
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/asyncio.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

from __future__ import absolute_import

import wrapt
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/asynqp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2018

from __future__ import absolute_import

import opentracing
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/aws/lambda_inst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Instrumentation for AWS Lambda functions
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/aws/triggers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Module to handle the work related to the many AWS Lambda Triggers.
"""
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/boto3_inst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

from __future__ import absolute_import

import json
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/cassandra_inst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
cassandra instrumentation
https://docs.datastax.com/en/developer/python-driver/3.20/
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/celery/catalog.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Celery Signals are disjointed and don't allow us to pass the scope object along
with the Job message so we instead store all scopes in a dictionary on the
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/celery/hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

from __future__ import absolute_import

import opentracing
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/couchbase_inst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2019

"""
couchbase instrumentation - This instrumentation supports the Python CouchBase 2.3.4 --> 2.5.x SDK currently:
https://docs.couchbase.com/python-sdk/2.5/start-using-sdk.html
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/django/middleware.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2018

from __future__ import absolute_import

import os
Expand Down
3 changes: 3 additions & 0 deletions instana/instrumentation/fastapi_inst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2020

"""
Instrumentation for FastAPI
https://fastapi.tiangolo.com/
Expand Down
Loading

0 comments on commit b6e9935

Please sign in to comment.