mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-02 11:31:52 +08:00
Resource detector for container properties (#1584)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com> Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com> Co-authored-by: Leighton Chen <lechen@microsoft.com>
This commit is contained in:
@ -54,7 +54,13 @@ sdk_ext_dirs = [
|
||||
if isdir(join(sdk_ext, f))
|
||||
]
|
||||
|
||||
sys.path[:0] = exp_dirs + instr_dirs + sdk_ext_dirs + prop_dirs
|
||||
resource = "../resource"
|
||||
resource_dirs = [
|
||||
os.path.abspath("/".join(["../resource", f, "src"]))
|
||||
for f in listdir(resource)
|
||||
if isdir(join(resource, f))
|
||||
]
|
||||
sys.path[:0] = exp_dirs + instr_dirs + sdk_ext_dirs + prop_dirs + resource_dirs
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user