File tree 6 files changed +14
-33
lines changed
6 files changed +14
-33
lines changed Original file line number Diff line number Diff line change 1
- # JaegerHost=jaeger
2
- # JaegerPort=5775
3
- # JaegerSamplerType=probabilistic
4
- # JaegerSamplerRate=1.0
5
- # JaegerServiceName=fastapi-pydaitor
6
- # JaegerTraceIdHeader=x-trace-id
7
- # RedisHost=redis
8
- # RedisPort=6379
9
- # RedisDb=0
10
- # TracerIsActive=false
1
+ # REDIS_HOST=redis
2
+ # REDIS_PORT=6379
3
+ # REDIS_DB=0
4
+ # REDIS_DB=REDIS_KEY_PREFIX
Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ def create_app():
39
39
tags = ["todo" ]
40
40
)
41
41
42
- @app .on_event ('startup' )
43
- async def startup ():
44
- app .add_middleware (StateRequestIDMiddleware )
45
-
46
42
set_up_pydiator ()
47
43
48
44
return app
Original file line number Diff line number Diff line change 13
13
DISTRIBUTED_CACHE_IS_ENABLED = config ("DISTRIBUTED_CACHE_IS_ENABLED" , bool , True )
14
14
CACHE_PIPELINE_IS_ENABLED = config ("CACHE_PIPELINE_IS_ENABLED" , bool , False )
15
15
LOG_PIPELINE_IS_ENABLED = config ("LOG_PIPELINE_IS_ENABLED" , bool , True )
16
- TRACER_PIPELINE_IS_ENABLED = config ("TRACER_PIPELINE_IS_ENABLED" , bool , True )
17
- TRACER_IS_ENABLED = config ('TRACER_IS_ENABLED' , bool , True )
18
16
19
- JAEGER_HOST = config ('JAEGER_HOST' , str , '0.0.0.0' )
20
- JAEGER_PORT = config ('JAEGER_PORT' , int , 5775 )
21
- JAEGER_SAMPLER_TYPE = config ('JAEGER_SAMPLER_TYPE' , str , 'probabilistic' )
22
- JAEGER_SAMPLER_RATE = config ('JAEGER_SAMPLER_RATE' , float , 1.0 )
23
- JAEGER_TRACE_ID_HEADER = config ('JAEGER_TRACE_ID_HEADER' , str , 'x-trace-id' )
24
- JAEGER_SERVICE_NAME = config ('JAEGER_SERVICE_NAME' , str , 'fastapi_pydiator' )
17
+
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ def set_up_pydiator():
34
34
container .register_pipeline (cache_pipeline )
35
35
36
36
# Service usecases mapping
37
- # container.register_request(GetSampleByIdRequest, GetSampleByIdUseCase())
38
37
container .register_request (GetTodoAllRequest , GetTodoAllUseCase ())
39
38
container .register_request (GetTodoByIdRequest , GetTodoByIdUseCase ())
40
39
container .register_request (AddTodoRequest , AddTodoUseCase ())
Original file line number Diff line number Diff line change 1
- uvicorn == 0.13.3
2
- fastapi == 0.65.2
3
- fastapi-contrib == 0.2.9
1
+ uvicorn == 0.27.0.post1
2
+ fastapi == 0.109.0
3
+ fastapi-contrib == 0.2.11
4
4
pydiator-core == 1.0.12
5
- pydantic == 1.7.4
6
- redis == 3.5.3
5
+ pydantic == 1.10.14
6
+ redis == 5.0.1
7
7
8
8
# test
9
9
pytest == 8.0.0
10
10
requests == 2.31.0
11
11
coverage == 7.4.1
12
12
pytest-env == 1.1.3
13
13
python-dotenv == 1.0.1
14
-
15
-
16
-
17
-
18
-
14
+ httpx == 0.26.0
Original file line number Diff line number Diff line change
1
+ # RedisHost=redis
2
+ # RedisPort=6379
3
+ # RedisDb=0
You can’t perform that action at this time.
0 commit comments