in olddocs/gen_edot_col_components/tools.py [0:0]
def get_otel_col_upstream_version(url):
elastic_agent_go_mod = fetch_url_content(url)
lines = elastic_agent_go_mod.splitlines()
for line in lines:
if 'go.opentelemetry.io/collector/otelcol ' in line:
return line[(line.rfind('v')+1):]
return '<OTEL_COL_VERSION>'