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

feat: Implement otel tracing hook. #130

Merged
merged 33 commits into from
Apr 10, 2024
Merged

feat: Implement otel tracing hook. #130

merged 33 commits into from
Apr 10, 2024

Conversation

kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Mar 28, 2024

Adds the otel hook.
Adds a workspace.

Before using the workspace you need to:

make workspace

kinyoklion and others added 3 commits March 28, 2024 15:07
This PR should be reviewed before other hooks PRs.

This PR adds supporting types for hooks, but does not use them from the
client.

---------

Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
Second PR.

This connects hooks to the ldclient.

It does not add the `Ex` methods to any interface, and it does not add
`AddHooks` to any interface.

---------

Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
Makefile Show resolved Hide resolved
@@ -20,22 +20,38 @@ COVERAGE_ENFORCER_FLAGS=-package github.com/launchdarkly/go-server-sdk/v7 \
-skipcode "// COVERAGE" \
-packagestats -filestats -showcode

.PHONY: build clean test test-coverage benchmarks benchmark-allocs lint
ALL_BUILD_TARGETS=sdk ldotel
Copy link
Member Author

Choose a reason for hiding this comment

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

Should we add the test service? It does not pass linting right now, because it doesn't seem to have accounted for the nested modules not working with ./....

Copy link
Member Author

Choose a reason for hiding this comment

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

I am going with no. We can add it to linting later, but fixing all its lint problems will need a PR as well.

@kinyoklion kinyoklion marked this pull request as ready for review April 1, 2024 20:22
@kinyoklion kinyoklion requested a review from a team April 1, 2024 20:22
@kinyoklion
Copy link
Member Author

This PR should not be merged until after hooks have been released in a go-server-sdk version.

ldotel/package_info.go Outdated Show resolved Hide resolved
ldotel/package_info.go Show resolved Hide resolved
ldotel/tracing_hook.go Show resolved Hide resolved
Makefile Show resolved Hide resolved
@kinyoklion
Copy link
Member Author

kinyoklion commented Apr 2, 2024

I'll make more monorepo features in another branch.

Changed my mind and added things here.

@kinyoklion
Copy link
Member Author

I think I have convinced myself to have 2 ci workflows though, and will do that here.

Other monorepo tasks would be:
ldotel readme
potentially issue templates to let you make module specific issues.

Base automatically changed from feat/hooks to v7 April 3, 2024 20:32
kinyoklion and others added 2 commits April 10, 2024 13:15
Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
Co-authored-by: Casey Waldren <cwaldren@launchdarkly.com>
@kinyoklion kinyoklion merged commit f5675c1 into v7 Apr 10, 2024
14 checks passed
@kinyoklion kinyoklion deleted the rlamb/implement-otel-hook branch April 10, 2024 20:55
kinyoklion added a commit that referenced this pull request Apr 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[7.4.0](v7.3.0...v7.4.0)
(2024-04-10)

This release contains no functional changes. It is a product of
structural changes to the repository.

### Features

* Implement otel tracing hook.
([#130](#130))
([f5675c1](f5675c1))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com>
kinyoklion pushed a commit that referenced this pull request Apr 11, 2024
🤖 I have created a release *beep* *boop*
---


## 1.0.0 (2024-04-11)


### Features

* Implement otel tracing hook.
([#130](#130))
([f5675c1](f5675c1))
* Update to use go-server-sdk 7.4.0
([#147](#147))
([0603a9a](0603a9a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@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.

3 participants