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

refactor Config out of otlpclient #245

Merged
merged 14 commits into from
Jul 18, 2023
Merged

refactor Config out of otlpclient #245

merged 14 commits into from
Jul 18, 2023

Conversation

tobert
Copy link
Collaborator

@tobert tobert commented Jul 18, 2023

This PR just does the first round of refactoring so that Config can move out of otlpclient. The OTLP clients themselves are now free of the Config object and instead expect a config that complies to an interface called OTLPConfig. In theory, this makes it easier for someone else to use the otlpclient. That's not really the goal but implies the right design & code boundaries.

This mostly moves code around without changing functionality. I deprecated --with-blocking since it's never really seemed useful, and that's one less config thing to pass around.

Amy Tobey added 14 commits July 15, 2023 06:59
First step in splitting out config is adding getter methods to Config
and moving code to use an interface instead.
Fills in OTLPConfig interface with the needed methods to break
dependence on Config so it can move out.
protobuf span is now clear of Config usage. This can move with Config
and can stay with it since it's all about translating otel-cli config to
a span and is useless otherwise.
Nothing was using the retry counter and Diag can't work in otlpclient
anymore so out it goes.
@tobert tobert merged commit 9a19f5f into main Jul 18, 2023
1 check passed
@tobert tobert deleted the refactor-config branch July 18, 2023 20:13
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.

1 participant