These are chat archives for spring-cloud/spring-cloud

3rd
Feb 2016
Dreampie
@Dreampie
Feb 03 2016 04:32
@spencergibb @dsyer
spring-cloud/spring-cloud-netflix#617
When can I use?
Spencer Gibb
@spencergibb
Feb 03 2016 05:33
After someone does it.
mike sarver
@mikesarver
Feb 03 2016 22:07
I have a sample project that is using Sleuth with DeferredResult and RxJava. I’m seeing ExceptionUtils on every other call where the previous calls span is bleeding over. I attempted adding onCompletion callback to close the span, but I’m still seeing the issue.
Is there a way to ensure a span is closed in a DeferredResult?
Sample: https://github.com/mikesarver/stuff-svc
Dave Syer
@dsyer
Feb 03 2016 22:07
Share some code?
mike sarver
@mikesarver
Feb 03 2016 22:08
here is a link to github project to reproduce the problem: https://github.com/mikesarver/stuff-svc
Dave Syer
@dsyer
Feb 03 2016 22:08
Thanks. Very helpful.
but not very minimal
Is it the FooController that breaks?
mike sarver
@mikesarver
Feb 03 2016 22:10
sorry I can strip i down so you do not waste your time. it is StuffController
Dave Syer
@dsyer
Feb 03 2016 22:10
that would be even more helpful
AFAIK there is no support for DeferredResult in MVC with Sleuth
But I guess it can be added.
A minimal sample will be extremely useful
mike sarver
@mikesarver
Feb 03 2016 22:13
thanks for the input, I will create a minimal sample and ask the question again.
Alex Filatov
@sprgn
Feb 03 2016 22:56
I can't get my spring config server to serve up the global application.yml to the clients. Shouldb't I be able to distribute global properties to all clients by having application.yml in my repo?

application/default/ returns

{
name: "application",
profiles: [
"default"
],
label: null,
version: "24",
propertySources: [ ]
}

but application/default/trunk/application.yml properly returns the contents of application.yml from the repo.

What am I missing?
Spencer Gibb
@spencergibb
Feb 03 2016 23:01
Need more detail, versions, configuration etc...
Alex Filatov
@sprgn
Feb 03 2016 23:13
Brixton.M4
This is application.yml for the config server itself. I am using subversion for backend.
info:
  build:
    artifact: @project.artifactId@
    name: @project.name@
    description: @project.description@
    version: @project.version@

spring:
  application:
    name: @project.artifactId@
  jmx:
    default-domain: ${spring.application.name}
  cloud:
    config:
      server:
        svn:
          uri: svn://svnprod/app_configuration
  profiles:
      active: subversion

server:
  port: 80

management:
  health:
    jms:
      enabled: false

eureka:
  instance:
    homePageUrl: http://${spring.cloud.client.hostname}:${server.port}/${spring.application.name}
    statusPageUrl: http://${spring.cloud.client.hostname}:${server.port}/${spring.application.name}/info
    healthCheckUrl: http://${spring.cloud.client.hostname}:${server.port}/${spring.application.name}/health
    leaseRenewalIntervalInSeconds: 10
  client:
    registryFetchIntervalSeconds: 5
    serviceUrl:
      defaultZone: http://localhost:80/ws_eureka/eureka/
mike sarver
@mikesarver
Feb 03 2016 23:16
In a slim down version of a project using Sleuth with DeferredResult and RxJava, I'm still seeing the issue where a span is living longer than the request. Every other request has a warning about the previous request's span still being open. I tried closing the span in the Observable.onComplete and DeferredResult onCompletion callback. Is there a way to ensure the span is closed or a another way that is recommended to have a RxJava async controller with Sleuth.? The sample project code is at: https://github.com/mikesarver/stuff-svc thanks for any help.
Spencer Gibb
@spencergibb
Feb 03 2016 23:23

@sprgn my super simple sample works

{
    "name": "app",
    "profiles": [
        "default"
    ],
    "label": null,
    "version": "3",
    "propertySources": [
        {
            "name": "https://subversion.assembla.com/svn/spring-cloud-config-repo/trunk/application.yml",
            "source": {
                "info.description": "Spring Cloud Samples",
                "info.url": "https://github.com/spring-cloud-samples",
                "eureka.client.serviceUrl.defaultZone": "http://user:${eureka.password}@localhost:8761/eureka/",
                "eureka.password": "..."
            }
        }
    ]
}

application.yml

server.port: 8888
spring:
  cloud:
    config:
      server:
        svn:
          uri: https://subversion.assembla.com/svn/spring-cloud-config-repo/
  profiles:
    active: subversion
you’ll need to provide a project that reproduces the problem.