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

Repair Zipkin Micrometer Tracing #225

Conversation

MarianConstantinMarica
Copy link
Contributor

No description provided.



---
management:
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this common configuration may be moved to the https://github.com/spring-petclinic/spring-petclinic-microservices-config/blob/main/application.yml
Are you agree?

Copy link
Member

Choose a reason for hiding this comment

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

@MarianConstantinMarica did you see my comment?

Copy link
Contributor

@marcingrzejszczak marcingrzejszczak left a comment

Choose a reason for hiding this comment

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

I would add logging.pattern.level=%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}] property so that the tracing information is there in the logs and as @arey suggested I would move this config to the config repo. Other than that LGTM.

@arey
Copy link
Member

arey commented Mar 21, 2023

Thanks for the review @marcingrzejszczak

@MarianConstantinMarica
Copy link
Contributor Author

@arey I Moved the common configuration to server-config!

@arey
Copy link
Member

arey commented Jul 3, 2023

Ok thank you @MarianConstantinMarica
This PR seems to be ready for merging

I saw the config PR spring-petclinic/spring-petclinic-microservices-config#19 and I posted a comment. I let you see.

@arey arey merged commit 07553f4 into spring-petclinic:master Jul 3, 2023
1 check passed
@arey
Copy link
Member

arey commented Jul 3, 2023

Thanks a lot @MarianConstantinMarica

@arey
Copy link
Member

arey commented Jul 3, 2023

@MarianConstantinMarica with docker-compose I've got the following error:

customers-service    | org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:9411/api/v2/spans": Connect to http://localhost:9411 [localhost/127.0.0.1] failed: Connection refused
customers-service    |  at org.springframework.web.client.RestTemplate.createResourceAccessException(RestTemplate.java:888)
customers-service    |  at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:868)

I suspect the localhost.
However, a GET http://localhost:8888/visits-service-docker.yml returns the expected URL: http://tracing-server:9411

spring:
  ...
  zipkin:
    baseUrl: http://tracing-server:9411

Did you have any idea?

@MarianConstantinMarica
Copy link
Contributor Author

@arey I don't know why this happen, I will check and I will come back with an answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants