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

[extension/zpages] Add an option to enable expvar #11217

Conversation

HongChenTW
Copy link

Description

Add an option to enable expvar, default is disable.

Link to tracking issue

Resolve #11081

Testing

Add a test case to verify the newly added option works.

@HongChenTW HongChenTW requested a review from a team as a code owner September 19, 2024 15:00
HongChenTW and others added 12 commits September 19, 2024 23:07
Signed-off-by: Hong Chen <[email protected]>
#### Description

All Testifylint rules are now fixed and ensured to be applied with
golangci-lint.
This removes the helper configuration in Makefile and tools module.
…emetry#11204)

#### Description
Depends on
open-telemetry#11209

This PR is a non-breaking implementation of
open-telemetry#10947. It
adds a new module, `pipeline`, which houses a `pipeline.ID` and
`pipeline.Signal`. `pipeline.ID` is used to identify a pipeline within
the service. `pipeline.Signal` is uses to identify the signal associated
to a pipeline.

I do this work begrudgingly. As the PR shows, this is a huge refactor
when done in a non-breaking way, will require 3 full releases, and
doesn't benefit our [End Users or, in my opinion, our Component
Developers or Collector Library
Users](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#target-audiences).
I view this refactor as a Nice-To-Have, not a requirement for Component
1.0.

<!-- Issue number if applicable -->
#### Link to tracking issue
Works towards
open-telemetry#9429
#### Description
Fixes failing unit test TestProcessTelemetryWithHostProc under
service/internal/proctelemetry/process_telemetry_linux_test.go due to
incorrect metric name

#### Link to tracking issue
Fixes [open-telemetry#11221](open-telemetry#11221)
#### Description
Need to update `pipeline` and `globalgate` versions to run `make
update-otel` in Contrib
#### Description
As part of
open-telemetry#11204 I
left `host`'s implementation of `GetExporters` alone, thinking I didn't
need to change a deprecated interface implementation.

But `GetExporters` depends on `component.DataType`, so we won't be able
to remove `component.DataType` unless `GetExporters` is updated to use
`pipeline.Signal` instead.

This PR deprecates the deprecated `GetExporters` interface with
`GetExportersWithSignal`, which uses `pipeline.Signal`. Then we'll
follow the process to rename `GetExportersWithSignal` back to
`GetExporters`.
The following commands were run to prepare this release:
- make chlog-update VERSION=v1.16.0/v0.110.0
- make prepare-release PREVIOUS_VERSION=1[.]15[.]0
RELEASE_CANDIDATE=1.16.0 MODSET=stable
- make prepare-release PREVIOUS_VERSION=0[.]109[.]0
RELEASE_CANDIDATE=0.110.0 MODSET=beta
@HongChenTW
Copy link
Author

Hi team, seems I mis-merged the others' commits and accidentally add many participants, should I open another PR to fix this issue?

Copy link
Contributor

github-actions bot commented Oct 9, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 9, 2024
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add expvar handler to zpages extension
6 participants