Esempio n. 1
0
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]


# Internationalization
# https://docs.djangoproject.com/en/2.1/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/

STATIC_URL = '/static/'

# TODO: Replace this with Wavefront Tracer
TRACER = NoopTracer()

OPENTRACING_TRACER = django_opentracing.DjangoTracer(TRACER)
Esempio n. 2
0
TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/

STATIC_URL = '/static/'

# OpenTracing settings

# default tracer is opentracing.Tracer(), which does nothing
OPENTRACING_TRACER = django_opentracing.DjangoTracer(Tracer("django_app", config={}))

# default is False
OPENTRACING_TRACE_ALL = False 

# default is []
OPENTRACING_TRACED_ATTRIBUTES = ['META']


DATADOG_TRACE = {
    'ENABLED': True,
}
Esempio n. 3
0
    config = Config(
        config={
            'sampler': {
                'type': 'const',
                'param': 1,
            },
            'logging': True,
        },
        service_name=service,
    )

    # this call also sets opentracing.tracer
    return config.initialize_tracer()


DATABASES = {
    'default': {
        'ENGINE': 'django_opentracing.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    },
}

# default is False
OPENTRACING_TRACE_ALL = False

# default is []
OPENTRACING_TRACED_ATTRIBUTES = ['META']

OPENTRACING_TRACING = django_opentracing.DjangoTracer(init_tracer('django'))
LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/

STATIC_URL = '/static/'
config = Config(
        config={ # usually read from some yaml config
            'sampler': {
                'type': 'const',
                'param': 1,
            },
            'logging': True,
        },
        service_name='Template2',
        validate=True,
    )
OPENTRACING_TRACE_ALL = True
# default tracer is opentracing.Tracer(), which does nothing
OPENTRACING_TRACER = django_opentracing.DjangoTracer(
    config.initialize_tracer())
Esempio n. 5
0
# Internationalization
# https://docs.djangoproject.com/en/1.9/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/

STATIC_URL = '/static/'

# OpenTracing settings

# default tracer is opentracing.Tracer(), which does nothing
OPENTRACING_TRACER = django_opentracing.DjangoTracer(
    lightstep.tracer.init_tracer(group_name="django_app",
                                 access_token="{your_lightstep_token}"))

# default is False
OPENTRACING_TRACE_ALL = False

# default is []
OPENTRACING_TRACED_ATTRIBUTES = ['META']