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

Add HTTP headers support to common HTTP client. #416

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

roidelapluie
Copy link
Member

This is named http_headers so it does not clash with blackbox exporter's headers and Prometheus remote client's headers, which are simple maps.

Signed-off-by: Julien Pivotto roidelapluie@o11y.eu

@roidelapluie
Copy link
Member Author

@jeromeinsf
Copy link

jeromeinsf commented Dec 7, 2022

Wondering if this will enable what was intended in #326

config/headers.go Outdated Show resolved Hide resolved
Comment on lines 53 to 55
Headers map[string][]string `yaml:"headers,omitempty" json:"headers,omitempty"`
SecretHeaders map[string][]Secret `yaml:"secret_headers,omitempty" json:"secret_headers,omitempty"`
Files map[string][]string `yaml:"files,omitempty" json:"files,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this entire scheme a bit confusing, both in the non-uniformity of the names (we have normal headers, secret headers, and then just files, which I understand why can't be file headers but still), and also in the names themselves (secret headers could be interpreted as intended, a header with a secret value, or some sort of a "secret" header). Of course they'll be docs to clear this up but I still think it's less than ideal. Therefore, I propose we instead have an iterated:

type header struct {
  name/key string
  value string
  secret secret
  file string
}

Which I think would be more clear and also allow for more complicated header appends. Generally a small difference though so feel free to ignore.

Comment on lines 94 to 96
if _, ok := reservedHeaders[http.CanonicalHeaderKey(k)]; ok {
return fmt.Errorf("setting header %q is not allowed", http.CanonicalHeaderKey(k))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would make more sense for this check to come first

@zetaab
Copy link

zetaab commented Dec 30, 2023

@roidelapluie @LeviHarrison what is status in this PR? At least I am interested of this feature

@Dronec
Copy link

Dronec commented Apr 10, 2024

Me too! Adding headers to requests is a relatively trivial operation and multiple APIs support that

@LeviHarrison
Copy link
Member

Just some small revisions

@roidelapluie friendly ping

This is named `http_headers` so it does not clash with blackbox
exporter's headers and Prometheus remote client's headers, which are
simple maps.

Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
@roidelapluie
Copy link
Member Author

@LeviHarrison here you go 🙂

Copy link
Member

@LeviHarrison LeviHarrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

As usual we'll need to update Prom docs after this

@roidelapluie roidelapluie merged commit 36303a8 into prometheus:main Apr 29, 2024
7 checks passed
MrAlias pushed a commit to open-telemetry/opentelemetry-go that referenced this pull request Jun 3, 2024
…5472)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/common](https://github.com/prometheus/common)
| `v0.53.0` -> `v0.54.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.54.0`](https://github.com/prometheus/common/releases/tag/v0.54.0)

[Compare
Source](https://github.com/prometheus/common/compare/v0.53.0...v0.54.0)

#### What's Changed

- Bump golang.org/x/net from 0.22.0 to 0.23.0 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#624
- Bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#623
- Add HTTP headers support to common HTTP client. by
[@&#8203;roidelapluie](https://github.com/roidelapluie) in
[prometheus/common#416
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#633
- Bump github.com/aws/aws-sdk-go from 1.51.11 to 1.51.32 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#632
- Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#628
- Bump golang.org/x/net from 0.23.0 to 0.24.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#630
- Bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#631
- Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#629
- Use common interface to fetch secrets in HTTP client config by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#538
- Add support for secret refs via a secret manager by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#572
- oauth2RoundTripper: Avoid race condition and readability changes. by
[@&#8203;bwplotka](https://github.com/bwplotka) in
[prometheus/common#634
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#636
- Bump github.com/aws/aws-sdk-go from 1.51.32 to 1.53.14 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#638
- Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 in
/sigv4 by [@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#639
- feat: add time template helpers by
[@&#8203;freak12techno](https://github.com/freak12techno) in
[prometheus/common#627

#### New Contributors

- [@&#8203;bwplotka](https://github.com/bwplotka) made their first
contribution in
[prometheus/common#634
- [@&#8203;freak12techno](https://github.com/freak12techno) made their
first contribution in
[prometheus/common#627

**Full Changelog**:
prometheus/common@v0.53.0...v0.54.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-go).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
MrAlias pushed a commit to open-telemetry/opentelemetry-go-contrib that referenced this pull request Jun 3, 2024
…5709)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/common](https://github.com/prometheus/common)
| `v0.53.0` -> `v0.54.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.54.0`](https://github.com/prometheus/common/releases/tag/v0.54.0)

[Compare
Source](https://github.com/prometheus/common/compare/v0.53.0...v0.54.0)

#### What's Changed

- Bump golang.org/x/net from 0.22.0 to 0.23.0 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#624
- Bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#623
- Add HTTP headers support to common HTTP client. by
[@&#8203;roidelapluie](https://github.com/roidelapluie) in
[prometheus/common#416
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#633
- Bump github.com/aws/aws-sdk-go from 1.51.11 to 1.51.32 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#632
- Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#628
- Bump golang.org/x/net from 0.23.0 to 0.24.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#630
- Bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#631
- Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#629
- Use common interface to fetch secrets in HTTP client config by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#538
- Add support for secret refs via a secret manager by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#572
- oauth2RoundTripper: Avoid race condition and readability changes. by
[@&#8203;bwplotka](https://github.com/bwplotka) in
[prometheus/common#634
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#636
- Bump github.com/aws/aws-sdk-go from 1.51.32 to 1.53.14 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#638
- Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 in
/sigv4 by [@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#639
- feat: add time template helpers by
[@&#8203;freak12techno](https://github.com/freak12techno) in
[prometheus/common#627

#### New Contributors

- [@&#8203;bwplotka](https://github.com/bwplotka) made their first
contribution in
[prometheus/common#634
- [@&#8203;freak12techno](https://github.com/freak12techno) made their
first contribution in
[prometheus/common#627

**Full Changelog**:
prometheus/common@v0.53.0...v0.54.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-go-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJTa2lwIENoYW5nZWxvZyIsImRlcGVuZGVuY2llcyJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
mx-psi pushed a commit to open-telemetry/opentelemetry-collector that referenced this pull request Jun 4, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/common](https://github.com/prometheus/common)
| `v0.53.0` -> `v0.54.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.54.0`](https://github.com/prometheus/common/releases/tag/v0.54.0)

[Compare
Source](https://github.com/prometheus/common/compare/v0.53.0...v0.54.0)

#### What's Changed

- Bump golang.org/x/net from 0.22.0 to 0.23.0 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#624
- Bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#623
- Add HTTP headers support to common HTTP client. by
[@&#8203;roidelapluie](https://github.com/roidelapluie) in
[prometheus/common#416
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#633
- Bump github.com/aws/aws-sdk-go from 1.51.11 to 1.51.32 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#632
- Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#628
- Bump golang.org/x/net from 0.23.0 to 0.24.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#630
- Bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#631
- Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#629
- Use common interface to fetch secrets in HTTP client config by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#538
- Add support for secret refs via a secret manager by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#572
- oauth2RoundTripper: Avoid race condition and readability changes. by
[@&#8203;bwplotka](https://github.com/bwplotka) in
[prometheus/common#634
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#636
- Bump github.com/aws/aws-sdk-go from 1.51.32 to 1.53.14 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#638
- Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 in
/sigv4 by [@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#639
- feat: add time template helpers by
[@&#8203;freak12techno](https://github.com/freak12techno) in
[prometheus/common#627

#### New Contributors

- [@&#8203;bwplotka](https://github.com/bwplotka) made their first
contribution in
[prometheus/common#634
- [@&#8203;freak12techno](https://github.com/freak12techno) made their
first contribution in
[prometheus/common#627

**Full Changelog**:
prometheus/common@v0.53.0...v0.54.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
mx-psi pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Jun 4, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/common](https://github.com/prometheus/common)
| `v0.53.0` -> `v0.54.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.54.0`](https://github.com/prometheus/common/releases/tag/v0.54.0)

[Compare
Source](https://github.com/prometheus/common/compare/v0.53.0...v0.54.0)

#### What's Changed

- Bump golang.org/x/net from 0.22.0 to 0.23.0 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#624
- Bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#623
- Add HTTP headers support to common HTTP client. by
[@&#8203;roidelapluie](https://github.com/roidelapluie) in
[prometheus/common#416
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#633
- Bump github.com/aws/aws-sdk-go from 1.51.11 to 1.51.32 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#632
- Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#628
- Bump golang.org/x/net from 0.23.0 to 0.24.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#630
- Bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#631
- Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#629
- Use common interface to fetch secrets in HTTP client config by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#538
- Add support for secret refs via a secret manager by
[@&#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#572
- oauth2RoundTripper: Avoid race condition and readability changes. by
[@&#8203;bwplotka](https://github.com/bwplotka) in
[prometheus/common#634
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://github.com/prombot) in
[prometheus/common#636
- Bump github.com/aws/aws-sdk-go from 1.51.32 to 1.53.14 in /sigv4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#638
- Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 in
/sigv4 by [@&#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#639
- feat: add time template helpers by
[@&#8203;freak12techno](https://github.com/freak12techno) in
[prometheus/common#627

#### New Contributors

- [@&#8203;bwplotka](https://github.com/bwplotka) made their first
contribution in
[prometheus/common#634
- [@&#8203;freak12techno](https://github.com/freak12techno) made their
first contribution in
[prometheus/common#627

**Full Changelog**:
prometheus/common@v0.53.0...v0.54.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
@pracucci
Copy link
Contributor

pracucci commented Jun 7, 2024

@roidelapluie I think this PR introduced an issue in JSON marshalling. Could you take a look at #651 please?

@@ -311,6 +311,9 @@ type HTTPClientConfig struct {
EnableHTTP2 bool `yaml:"enable_http2" json:"enable_http2"`
// Proxy configuration.
ProxyConfig `yaml:",inline"`
// HTTPHeaders specify headers to inject in the requests. Those headers
// could be marshalled back to the users.
HTTPHeaders *Headers `yaml:"http_headers" json:"http_headers"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we at least make it omit empty?

cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jul 11, 2024
…n-telemetry#33363)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/common](https://github.com/prometheus/common)
| `v0.53.0` -> `v0.54.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.53.0/v0.54.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.54.0`](https://github.com/prometheus/common/releases/tag/v0.54.0)

[Compare
Source](https://github.com/prometheus/common/compare/v0.53.0...v0.54.0)

#### What's Changed

- Bump golang.org/x/net from 0.22.0 to 0.23.0 in /sigv4 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#624
- Bump golang.org/x/net from 0.22.0 to 0.23.0 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#623
- Add HTTP headers support to common HTTP client. by
[@&open-telemetry#8203;roidelapluie](https://github.com/roidelapluie) in
[prometheus/common#416
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://github.com/prombot) in
[prometheus/common#633
- Bump github.com/aws/aws-sdk-go from 1.51.11 to 1.51.32 in /sigv4 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#632
- Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#628
- Bump golang.org/x/net from 0.23.0 to 0.24.0 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#630
- Bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#631
- Bump google.golang.org/protobuf from 1.33.0 to 1.34.0 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#629
- Use common interface to fetch secrets in HTTP client config by
[@&open-telemetry#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#538
- Add support for secret refs via a secret manager by
[@&open-telemetry#8203;TheSpiritXIII](https://github.com/TheSpiritXIII) in
[prometheus/common#572
- oauth2RoundTripper: Avoid race condition and readability changes. by
[@&open-telemetry#8203;bwplotka](https://github.com/bwplotka) in
[prometheus/common#634
- Synchronize common files from prometheus/prometheus by
[@&open-telemetry#8203;prombot](https://github.com/prombot) in
[prometheus/common#636
- Bump github.com/aws/aws-sdk-go from 1.51.32 to 1.53.14 in /sigv4 by
[@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#638
- Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 in
/sigv4 by [@&open-telemetry#8203;dependabot](https://github.com/dependabot) in
[prometheus/common#639
- feat: add time template helpers by
[@&open-telemetry#8203;freak12techno](https://github.com/freak12techno) in
[prometheus/common#627

#### New Contributors

- [@&open-telemetry#8203;bwplotka](https://github.com/bwplotka) made their first
contribution in
[prometheus/common#634
- [@&open-telemetry#8203;freak12techno](https://github.com/freak12techno) made their
first contribution in
[prometheus/common#627

**Full Changelog**:
prometheus/common@v0.53.0...v0.54.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zODguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM4OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants