faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

Traces have wrong Trace Start time

Open mjovanovic0 opened this issue 2 years ago • 2 comments

Description

After the setup of the LGTM stack with Faro and Grafana Agent receiver, and configuring React app the same way as it is a demo application, tracers are received and able to browse them in Tempo but they all have the wrong Trace Start time. Logs on the other hand in Loki have the correct time.

trace

Agent configuration:

metrics:
  wal_directory: /tmp/wal
  global: {}
  configs:
    - name: default
      remote_write:
        - url: http://prometheus.app:9090/api/v1/write
logs:
  positions_directory: /tmp/loki-pos
  configs:
    - name: default
      clients:
        - url: http://loki..app:3100/loki/api/v1/push
      scrape_configs:
      - job_name: frontend-core-ui
        pipeline_stages:
          - logfmt:
              mapping:
                timestamp: timestamp
          - timestamp:
              format: "2006-01-02 15:04:05.000 -0700 MST"
              source: timestamp
          - output:
              source: output
        static_configs:
          - labels:
              job: frontend-core-ui

traces:
  configs:
    - name: default
      remote_write:
        - endpoint: tempo.app:4317
          insecure: true
          tls_config:
            insecure_skip_verify: true
      receivers:
        otlp:
          protocols:
            grpc:
            http:
              cors:
                allowed_origins:
                  - http://localhost:8080
                max_age: 7200

integrations:
  app_agent_receiver_configs:
    - autoscrape:
        enable: true
        metrics_instance: 'default'
      instance: 'frontend-core-ui'
      logs_instance: 'default'
      traces_instance: 'default'
      server:
        host: 0.0.0.0
        port: 8081
        cors_allowed_origins:
          - 'http://localhost:3000'
      logs_labels: # labels to add to loki log record
        job: frontend-core-ui
        kind: # value will be taken from log items. exception, log, measurement, etc
        Time:
        timestamp:
      logs_send_timeout: 5000
      sourcemaps:
        download: true

Don't know where to look anymore for potential fix...

Environment

  • SDK version: 1.0.0-beta3
  • SDK instrumentations: Core, Web SDK, Web Tracing, React
  • Device type: desktop
  • Device name: MacBook Pro 16"
  • OS: macOS Ventura 13.1
  • Browser: Chrome 108.0.5359.98

mjovanovic0 avatar Dec 15 '22 11:12 mjovanovic0

Hello!

I started investigating this as I can reproduce it locally.

bfmatei avatar Dec 16 '22 11:12 bfmatei

@bfmatei doing some board cleaning, did we resolve this?

eskirk avatar Aug 14 '23 23:08 eskirk