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

Protobuf scala span creation #2069

Merged
merged 17 commits into from
Apr 8, 2024
Merged

Protobuf scala span creation #2069

merged 17 commits into from
Apr 8, 2024

Conversation

franciscolopezsancho
Copy link
Contributor

Adding example on how to create spans in the scala-protobuf

Depends on #2051 . Specifically because DevModeSettings to pass the params to the user function needed to push traces to jaeger in a local environment.

@github-actions github-actions bot added Documentation Improvements or additions to the documentation kalix-runtime Runtime and SDKs sub-team scala-sdk-protobuf labels Apr 2, 2024
@franciscolopezsancho franciscolopezsancho force-pushed the protobuf_scala_span_creation branch from 186a8ad to 2dc6ce4 Compare April 4, 2024 08:35
Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

I will review more in detail later.

I did a first pass though.

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

LGTM

A few comments to address before merging. Some comments can go on follow-up PRs.

Copy link
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

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

LGTM

@octonato octonato merged commit 05f78a5 into main Apr 8, 2024
73 checks passed
@octonato octonato deleted the protobuf_scala_span_creation branch April 8, 2024 10:05
octonato added a commit that referenced this pull request Apr 10, 2024
* feat: showcasing how to create spans (#2051)

* feat: showcasing how to create spans

* bug: using nonexisting (and deprecated) docker-compose (#2071)

* chore: aligning .env and  docker-compose.yml (#2070)

* Protobuf scala span creation (#2069)

* Added tracing context in Scala SDK and using sttp in the Scala sample

* simpler sync example

* added async calling endpoint

* using core sttp and some cleaning

* refactoring

* added readme

* removing sync

* implementing interface for ScalaActionContextAdapter

* Cleaned and created docs

* Clean up scala-protobuf-traicing sample and adding NoOps tracer for a better DX

* docs and new implementation for the java-protobuf-tracing example

* avoid validating local urls and validate  back

* Update docs/src/modules/java-protobuf/pages/actions.adoc

Co-authored-by: Renato Cavalcanti <[email protected]>

* Update samples/scala-protobuf-tracing/project/plugins.sbt

Co-authored-by: Renato Cavalcanti <[email protected]>

* Update sdk/java-sdk-protobuf/src/main/java/kalix/javasdk/action/ActionCreationContext.java

Co-authored-by: Renato Cavalcanti <[email protected]>

* addressing comments

* simplifying request/response types

---------

Co-authored-by: Renato Cavalcanti <[email protected]>

* bump: Kalix Runtime to 1.1.34 (#2060)

* feat: ComponentClient tracing (#2063)

* feat: ComponentClient tracing

* feat: component to component tracing spring

* move KalixClient to impl package

* formatting

* re-added full imports

* Apply suggestions from code review

Co-authored-by: Eduardo Pinto <[email protected]>

* Update sdk/java-sdk-spring/src/test/java/kalix/javasdk/client/ComponentClientTest.java

Co-authored-by: Eduardo Pinto <[email protected]>

* renamed method and added extra comments

* remove possibility to inject KalixClient

* remove direct dependency on KalixClient

* use FQCN when failing wiring

---------

Co-authored-by: Francisco Lopez-Sancho <[email protected]>
Co-authored-by: Eduardo Pinto <[email protected]>

* Update LICENSE to BSL (#2054)

* Update LICENSE to BSL

* Date reminder

---------

Co-authored-by: Enno Runne <[email protected]>

* chore: bump akka libs to latest (#2067)

* chore: bump akka libs to latest

* remove akka-http2-support deps

* used scalaPb instead of akka-grpc

* add akka resolvers to scala samples

* add akka resolvers to mvn samples and archetypes

* align protoc version

* chore: disciplined compiler settings and deprecation removal (#2072)

* chore: remove warnings and deprecated APIs

* remove EntityKey, EntityType and GenerateEntityKey

* remove KalixTestKit.getTopic

* remove KalixTestKit.getGrpcClientSettings

* remove withPassivationStrategy

* remove Auto-application to ()

* remove usage of Akka deprecated APIs

* fixing scaladoc links

* silence warnings from generated code

* fix GenerateMojo call

* remove unused imports

* fix link to OutgoingMessagesImpl#DefaultTimeout

* BSL license in project settings (#2076)

* fix compilation and headers

* align protoc version

* add akka resolvers to tracing samples

---------

Co-authored-by: Francisco Lopez-Sancho <[email protected]>
Co-authored-by: Kalix Bot <[email protected]>
Co-authored-by: Eduardo Pinto <[email protected]>
Co-authored-by: Justin Pihony <[email protected]>
Co-authored-by: Enno Runne <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to the documentation java-sdk java-sdk-protobuf kalix-runtime Runtime and SDKs sub-team scala-sdk-protobuf
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants