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

[pkg/telemetryquerylanguage] Unexport unnessessary functions and types #13737

Merged

Conversation

TylerHelmuth
Copy link
Member

Description:
This PR unexports several functions and types that do not need to be exposed

Link to tracking Issue:
Works towards #13690

Testing:
Unit Tests

want func(pmetric.MetricSlice)
}

func Test_ConvertSummarySumValToSum(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

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

These 2 test files should've been using the function directly but were still calling NewFunctionCall. They are now in line with how we test other functions.

Copy link
Contributor

@evan-bradley evan-bradley left a comment

Choose a reason for hiding this comment

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

Since this PR focuses on the TQL package's public interface, I think it may be worth adding a section in the readme to describe how to use the TQL in a component, as it's not immediately obvious when looking through the docs in the repo or the published docs. However, that change isn't essential here and may be large enough in scope to make more sense in another PR.

unreleased/issue-13690-adjust-exported-funcs.yaml Outdated Show resolved Hide resolved
@TylerHelmuth
Copy link
Member Author

@evan-bradley I agree, the public docs for the actual interface of the package is lacking. @bogdandrutu addressed that problem in the linked issue and I plan to tackle it in its entirety in a separate PR.

@bogdandrutu
Copy link
Member

Need rebase

@TylerHelmuth
Copy link
Member Author

@bogdandrutu merge conflicts handled

@djaglowski djaglowski merged commit 3db9e60 into open-telemetry:main Sep 19, 2022
@TylerHelmuth TylerHelmuth deleted the issue-13690-adjust-exported-funcs branch September 19, 2022 15:53
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request Sep 19, 2022
open-telemetry#13737)

This PR unexports several functions and types that do not need to be exposed
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

5 participants